我正在使用vb.net和sql server开发小型项目。现在我要创建报告。我正在使用rdlc report.i创建报告并设置参数,现在我想在报告标题中显示选定的参数值。我尝试有几件事,但没有一个对我有用。这是我的当前代码。
{
"error":{
"code":401,
"message":"Request had invalid authentication credentials.
Expected OAuth 2 access token, login cookie or other valid
authentication credential. See
https://developers.google.com/identity/sign-in/web/devconsole-
project.",
"status":"UNAUTHENTICATED"
}
}
答案 0 :(得分:0)
终于我得到了答案
Private Sub find_Click(sender As Object, e As EventArgs) Handles find.Click
Me.mpaymentTableAdapter.Fill(Me.eksath1DataSet.mpayment, fromdate.Text, todate.Text)
Dim ftital(1) As ReportParameter
ftital(0) = New ReportParameter("fromdate", Me.fromdate.Value)
ftital(1) = New ReportParameter("todate", Me.todate.Value)
ReportViewer1.LocalReport.SetParameters(ftital)
Me.ReportViewer1.RefreshReport()
End Sub