Development Environment: VS Studio 2005, ASP.NET, VB.NET, Telerik Reporting v3.0.9.430
Problem: Trying to hide empty space of a subreport which resides within a subreport.
Attempts so far: Tried setting height of the detail section of both sub reports to 0.01 within the constructor. Have all text boxes property CanShrink set to True.
Report Design Look:
Main Report:
-------------------------------------------------
Report Header Section
-------------------------------------------------
Detail Section with Text Boxes
SubReport1
-------------------------------------------------
SubReport1 (w/Header/Footer Visible=False):
-------------------------------------------------
Detail Section with Text Boxes
SubReport2
-------------------------------------------------
SubReport2 (w/Header/Footer Visible=False):
-------------------------------------------------
Detail Section with only one Text Box (CanShrink=True)
-------------------------------------------------
Code for both SubReport1 and SubReport2:
Report Output:
By setting the border for the detail section of SubReport1 and SubReport2 I can see that SubReport2 is hidden yet SubReport1's detail section is still expanded for the content of SubReport2. This report has mutliple rows returned and only a few rows will contain data within SubReport2. SubReport1 always has data
Here is an example of what it should look like:
Example Report 1
Patients for: Dr. Bob Burns
Name DOB Age Gender
Bob Smith 01/01/1974 35 Male
Nancy Apple 05/01/1976 33 Female
Here are some notes for Nancy Apple
Joe Johnson 03/25/1978 31 Male
Here is what is really produced by the report:
Example Report 1
Patients for: Dr. Bob Burns
Name DOB Age Gender
Bob Smith 01/01/1974 35 Male
Nancy Apple 05/01/1976 33 Female
Here are some notes for Nancy Apple
Joe Johnson 03/25/1978 31 Male
Any help is greatly appreciated.
Warren
Problem: Trying to hide empty space of a subreport which resides within a subreport.
Attempts so far: Tried setting height of the detail section of both sub reports to 0.01 within the constructor. Have all text boxes property CanShrink set to True.
Report Design Look:
Main Report:
-------------------------------------------------
Report Header Section
-------------------------------------------------
Detail Section with Text Boxes
SubReport1
-------------------------------------------------
SubReport1 (w/Header/Footer Visible=False):
-------------------------------------------------
Detail Section with Text Boxes
SubReport2
-------------------------------------------------
SubReport2 (w/Header/Footer Visible=False):
-------------------------------------------------
Detail Section with only one Text Box (CanShrink=True)
-------------------------------------------------
Code for both SubReport1 and SubReport2:
Public Sub New() |
InitializeComponent() |
Me.DetailSection1.Height = Unit.Inch(0.01) |
Me.DataSource = Nothing |
End Sub |
Report Output:
By setting the border for the detail section of SubReport1 and SubReport2 I can see that SubReport2 is hidden yet SubReport1's detail section is still expanded for the content of SubReport2. This report has mutliple rows returned and only a few rows will contain data within SubReport2. SubReport1 always has data
Here is an example of what it should look like:
Example Report 1
Patients for: Dr. Bob Burns
Name DOB Age Gender
Bob Smith 01/01/1974 35 Male
Nancy Apple 05/01/1976 33 Female
Here are some notes for Nancy Apple
Joe Johnson 03/25/1978 31 Male
Here is what is really produced by the report:
Example Report 1
Patients for: Dr. Bob Burns
Name DOB Age Gender
Bob Smith 01/01/1974 35 Male
Nancy Apple 05/01/1976 33 Female
Here are some notes for Nancy Apple
Joe Johnson 03/25/1978 31 Male
Any help is greatly appreciated.
Warren