Hi,
I have a report with a subreport. The subreport contains some textboxes that may of may not be shown depending on wether they contain data or not. The textboxes that contains data is correctly shiftet upwards (where the textboxes without data was placed) leaving no empty space between the textboxes in the subreport. The problem is that there is a lot of empty space under the textboxes in the subreport. I have tried to set the height of the subreport in it's ItemDataBinding and ItemDataBound events but apparently that is not possible.
How do I adjust the height of the subreport to fit it's content?
Thanks
I have a report with a subreport. The subreport contains some textboxes that may of may not be shown depending on wether they contain data or not. The textboxes that contains data is correctly shiftet upwards (where the textboxes without data was placed) leaving no empty space between the textboxes in the subreport. The problem is that there is a lot of empty space under the textboxes in the subreport. I have tried to set the height of the subreport in it's ItemDataBinding and ItemDataBound events but apparently that is not possible.
private void detail_ItemDataBound(object sender, System.EventArgs e) |
{ |
Telerik.Reporting.Processing.DetailSection detailSection = (Telerik.Reporting.Processing.DetailSection)sender; |
detailSection.Height.Subtract(new Telerik.Reporting.Drawing.Unit(2.0, Telerik.Reporting.Drawing.UnitType.Cm)); |
} |
private void detail_ItemDataBinding(object sender, System.EventArgs e) |
{ |
Telerik.Reporting.Processing.DetailSection detailSection = (Telerik.Reporting.Processing.DetailSection)sender; |
detailSection.Height.Subtract(new Telerik.Reporting.Drawing.Unit(2.0, Telerik.Reporting.Drawing.UnitType.Cm)); |
} |
How do I adjust the height of the subreport to fit it's content?
Thanks