This is a migrated thread and some comments may be shown as answers.

Parameter in Reports

1 Answer 221 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 27 Nov 2007, 09:56 AM
Hi!,
        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.

Thanks,
Rahul

    

1 Answer, 1 is accepted

Sort by
0
Milen | Product Manager @DX
Telerik team
answered on 28 Nov 2007, 02:18 PM
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.

Greetings,
Milen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Milen | Product Manager @DX
Telerik team
Share this question
or