Reports, TableAdapters, and parameters

Last post 05-13-2008 12:57 AM by Nai-Dong Jin - MSFT. 1 replies.

Sort Posts:

  • Reports, TableAdapters, and parameters

    05-09-2008, 7:02 PM
    • Loading...
    • DesertDude
    • Joined on 06-01-2005, 10:56 PM
    • Tucson, Arizona, USA
    • Posts 294

    How do I pass a value from my VB.Net code to a parameter of the GetData method of a TableAdapter in a DataSet in a rdlc?

    I have a report (rdlc). The report has a table whose DataSetName property is set to a datable of a TableAdapter that has a GetData method that takes a parameter (GetData(@param1)). How do I pass a value to that @param1?

    Thanks.

  • Re: Reports, TableAdapters, and parameters

    05-13-2008, 12:57 AM
    Answer

    Hi,

     

    From your description, you are using the get method of your TableAdapter to return the dataset and bind it to the report viewer control, and you want to pass the parameters to the method of table adapter, right?

     

    I suggest that you can refer the following article, which shares a step by step tutorial on how to achieve that.

     

    http://www.codeproject.com/KB/webforms/ReportViewer.aspx?fid=341063&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2427923

     

    Thanks.

     

    Sincerely,
    Michael Jin.
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (2 items)