|
-
Jan 1st, 2009, 06:06 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [solved] #Error with microsoft report
I added a parameter to the rdlc called paramTitle
Then I tried this as a demo
Code:
Dim params(0) As Microsoft.Reporting.WinForms.ReportParameter
params(0) = New Microsoft.Reporting.WinForms.ReportParameter("paramTitle", "Hello world")
ReportViewer1.LocalReport.SetParameters(params)
ReportViewer1.RefreshReport()
I bound a text box to that parameter with
Code:
=Parameters!paramTitle
Now when I run the program, the textbox says "#Error" rather than "Hellow world" as I would expect.
Does anyone see anything wrong here?
Thanks,
Dave
Last edited by daviddoria; Jan 2nd, 2009 at 08:34 AM.
-
Jan 1st, 2009, 06:18 PM
#2
Thread Starter
Hyperactive Member
Re: #Error with microsoft report
Of course I figured it out right after I posted...
I simply had to use
Code:
=Parameters!paramTitle.Value
instead of just
Code:
=Parameters!paramTitle
-
Jan 1st, 2009, 11:02 PM
#3
Re: #Error with microsoft report
Well then, you can jus mark your thread resolved to let others know that you have solved your problem already.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|