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

Supress if empty

1 Answer 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael Baumgartner
Top achievements
Rank 1
Michael Baumgartner asked on 01 Apr 2010, 11:42 AM
Hello,

The Report:
Master detail Report

-Master report
  Picture (Picturbox) and picturename(Textbox)
 
 - Childreport
  a list with data for each Picture

The function:
A User should be able to make several report regions invisible.

The Problem is if all the items in the Masterreport set to invisible but the childreport has no data the reporting engine generates a blank page.

What I want is : supress the empty(invisible) page/Region/Space/Section!
For Example if your have 8 Pictures in the Masterlist i have got 8 pages ! But I dont want this because all the items in Master are invisible

Thx for your help!

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 06 Apr 2010, 05:14 PM
Hello Michael,

Add a similar line for each report section after the InitializeComponent method of your master report:

this.detail.Height = new Telerik.Reporting.Drawing.Unit(0.01, UnitType.Inch);

Basically you're setting a very small value for the height of each section and this way it would stretch only to accommodate the visible items.

Kind regards,
Steve
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.
Tags
General Discussions
Asked by
Michael Baumgartner
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or