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

Accessing the Report.

1 Answer 119 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 20 Aug 2008, 05:36 PM
Ok...so I have my report somewhat working.  I am currently designing it using textboxes and shapes.  I also have some data being put into a data source and it is running correctly. 

I can see the report when working on the .vb file by doing a preview, however how do i access the report to see what I am seeing within the aspx.vb page?  Also can you pass a variable into the report.vb class so that the sql for the data source can be dynamic?

Thanks again for all the help.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 21 Aug 2008, 02:43 PM
Hello David,

If we understand your inquiry correctly - you want to show the report in your web app. This can be achieved with the help of our Web ReportViewer control. As for your second question - as you may have already seen Telerik Reporting depends on the standard .NET data source objects - DataSet, collections, etc. This means that you are responsible for feeding the reports with data. According to your scenario -  there is no limitation how you can set the data source of the reports. Since Report.DataSource property is public you can access it from outside the reports. In short you can create and initialize your data source object on the application level and pass it to any report just before displaying it in the report viewer. Here are a few links that would be helpful:

All the best,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or