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

Dynamically created report viewer not displaying report data ?

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeremy Mann
Top achievements
Rank 1
Jeremy Mann asked on 13 Sep 2009, 03:57 AM
I'm dynamically creating a public ReportViewer and then adding it to the masterpage via a reports base class.  The base class adds the report viewer to the form okay, but the ReportViewer will not render the report (I never even get a "generating" notification).  If I just drop a report viewer control directly on the page and then *only* change the reference, it works as expected(example below). Nothing else is changed; which since the viewer control is actually displaying on the page in both instances, it makes me believe the Telerik engine is having a problem connecting the report to the viewer or perhaps having problems rendering it to the screen. I have also noticed I do not get the report parameter inputs for the dynamically created reportviewer if that helps give any clues to the issue.

ReportViewer1.Report = thisReport; 
(RV dynamically created in the base class - RV renders fine on page, but displays no report)
#####  Just change the reference to the dedicated RV and it then works. #####
ReportViewer2.Report = thisReport;  (RV directly put in the page - Everything works as it should)

Is there something out of the ordinary I'm missing for dyanamcily creating a ReportViewer to see the report and then getting it to render? Again, everything works fine for the non dynamically created ReportViewer.

(note: the dynamic created reportviewer is persisted though postbacks as it should)

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 15 Sep 2009, 03:51 PM
Hi Jeremy Mann,

It would be best if you open a support ticket and attach a sample project that shows the problematic behavior you describe. Once we review it, we would be able to provide you with more info.

Regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Jeremy Mann
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or