Parameter in Reports

2 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 27 Nov 2007 Link to this post

            I am creating a report which will require 2 parameters customer ID and Date. I have written stored procedures to retrieve data. I am getting dataset from my stored procedure and assigning to the report datasource.
        eg. MyReport.datasource = ds.tables(0)
    Thus , I am not using wizard to attach datasource.
        I am creating the class library for the report(.dll) and using that in my webforms.(As shown in Telerik Reporting help manual)
         Now I want to know how to ask for the parameters. From my webforms I can get the parameters from session. But how to ask for parameters in report class Library.
              Please give me the steps to do so.


  2. Milen
    Milen avatar
    164 posts

    Posted 28 Nov 2007 Link to this post

    Hi Rahul Khinvasara,

    I am glad to have the opportunity to help you again.

    There is a video called Design Time Support For Parameterized Queries that I believe will give you the answer of your question.
    The bottom line is to add public property or method to your report which sets the parameters of the report. Then from the page(form) that displays the report to set that properties of the report and refresh the report.

    In addition to the movie you can take a look at the attached sample project, which covers the same situation, but in a web page.

    I hope this information helps.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top