0

My apologies for such a simple question but after 3 days of searching I cannot find an answer. I have a VS 2012 VB.NET application and Report. I would like to have the user enter information on a windows form, for example "Client Name: [textbox1] ". I want to pass the entered value of textbox1 to a report field. I have created the report field textbox and created a parameter in the report (rdlc) as @reportparam1. Once the user completes the form he/she will press a button that brings up the report.

4

1 回答 1

0

您必须设置参数值并将其传递给您的报告:

Dim parReportParam1 As New ReportParameter("parReportParam1", Me.TextBox1.Text)
Me.YourReportViewer.LocalReport.SetParameters(New ReportParameter() {parReportParam1})

在您的报告中,您必须将文本框值设置为:

=Parameters!parReportParam1.Value
于 2013-07-15T07:32:19.383 回答