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

Get Report Data in Code of Report Viewer

2 Answers 160 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike Sorel
Top achievements
Rank 1
Mike Sorel asked on 27 May 2011, 02:32 AM
Hi,

I have a Telerik report that I preview in a web page with a standard telerik:ReportViewer.

Within code of the report viewer page I would like to read data from textboxes on the report being previewed (or from the datasource of the report if that is easier).  I have tried getting a reference to the report and then the report section and then the textbox, but all I get
back from the textbox.value is the formula of the value property (eg "=Fields.assessment_id") not the actual data.

Is what I am trying to do possible?

Could anyone send me a snippet (VB if possible) to get me going, or point me in the direction of an article that discusses this topic?

Thanks in advance.

Mike

2 Answers, 1 is accepted

Sort by
0
Stephan
Telerik team
answered on 27 May 2011, 05:08 PM
Hi Mike Sorel,

The reporting engine is a data presentation tool and it is outside of the business logic. Thus it consumes data but does not provide data access. From the report viewer page/form you can only access the textbox definition value.

More information on the report life cycle you may find here.

Keeping that in mind, it will be best if you analyze the data before feeding your reports, instead of trying to pull the data back from the reports.

If that information does not help, please send us a small sample runnable project that demonstrates your scenario.

Regards,
Stephan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mike Sorel
Top achievements
Rank 1
answered on 28 May 2011, 01:50 AM
Hi Stephan,

Thanks very much for your prompt reply.

I have now created a method to store the required data in a session variable as I set the report parameters.

Regards

Mike
Tags
General Discussions
Asked by
Mike Sorel
Top achievements
Rank 1
Answers by
Stephan
Telerik team
Mike Sorel
Top achievements
Rank 1
Share this question
or