How-to: Pass 2 Date Parameters to Report Viewer

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
20,759
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 27, 2010

Build a report base on 2 dates, order date and ship date.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (videocode2)

  • Do you have the C# code available for download for this example?

  • @maqskywalker2k4 I only have the code/passing 1 parameter.

  • I try also this one -->Try this DataTable t = table2;

    ReportDataSource rds = new ReportDataSource("DataSet1_Sal­­esOrderHeader1", t);<-- But t will get Null

  • @hazelf386 that means table2 is not been populated.

  • hi, thanks for this tutorial, i am a newbie, i have a problem in LocalReport, Reportviewer does not contain "LocalReport"

  • @hazelf386 Drop a Report Viewer control to your page, you will see it does have LocalReport in the properties window.

see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • 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...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more