How-to: Pass 2 Date Parameters to Report Viewer
Loading...
20,759
Loading...
Uploader Comments (videocode2)
see all
All Comments (9)
-
Thanks a ton for the videos, really appreciate them.
-
@SilentPain3645 Try this DataTable t = table2;
ReportDataSource rds = new ReportDataSource("DataSet1_Sal
esOrderHeader1", t); -
Hey for some reason, i get an error when i insert table2 where u declare the report datascoure it says Error 2 The call is ambiguous between the following methods or properties: 'Microsoft.Reporting.WebForms.
ReportDataSource.ReportDataSou rce(string, System.Collections.IEnumerable )' and 'Microsoft.Reporting.WebForms. ReportDataSource.ReportDataSou rce(string, System.Data.DataTable)' and i copied your code exactly am i missing something?
Loading...
Do you have the C# code available for download for this example?
maqskywalker2k4 4 months ago
@maqskywalker2k4 I only have the code/passing 1 parameter.
videocode2 4 months ago
I try also this one -->Try this DataTable t = table2;
ReportDataSource rds = new ReportDataSource("DataSet1_SalesOrderHeader1", t);<-- But t will get Null
hazelf386 9 months ago
@hazelf386 that means table2 is not been populated.
videocode2 9 months ago
hi, thanks for this tutorial, i am a newbie, i have a problem in LocalReport, Reportviewer does not contain "LocalReport"
hazelf386 9 months ago
@hazelf386 Drop a Report Viewer control to your page, you will see it does have LocalReport in the properties window.
videocode2 9 months ago