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

Problem with hiding subreport ?

1 Answer 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 07 Dec 2011, 10:20 PM
When i try to set visible of subreport to false i get this error :
Error: Object reference not set to an instance of an object.

report1.Items["detail"].Items["table1"].Items["subreport1"].Visible = false;

How can i do such ?!

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 08 Dec 2011, 02:01 PM
Hi Roger,

Although we could not reproduce the problem locally, placing a panel in the table cell first, and then placing the SubReport inside the panel should avoid such problems.

Best wishes,
Steve
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

Tags
General Discussions
Asked by
Roger
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or