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

Bugs and problems with reporting

3 Answers 159 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 14 Nov 2007, 11:48 PM
I have a report which contains 4 subreport. I am getting two problems:

1. The report can't be displayed in the reportviewer if I set the subreport control's width shorter then the width of the subreport. The report viewer will continuely running without giving any error message.

2. When I close the application and return to the report designer viewer, the report is freezing and I can't modify the controls in the report designer. I have to close it and open it again to be able to modify the report in the designer.

3 Answers, 1 is accepted

Sort by
0
Hrisi
Telerik team
answered on 16 Nov 2007, 03:59 PM
Hello Steven,

This is a known issue and fix will be available in the upcoming release in mid December. The reason for this behavior is an autogrow of the subreport items when they are placed next to each other. The only workaround is to make the subreport items width equal or greater then the subreport width.

The second issue is a result of breaking the application before it finished executing and as a result some threads are not destroyed properly.

I hope this infirmation helps. Thank you.

Best wishes,
Hrisi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Benson
Top achievements
Rank 1
answered on 20 Nov 2007, 08:33 AM
Support,

I encountered the same error:
A report with serveral sub-reports (Web). No problem when exporting to pdf, but the report is shown out partially when presenting by ReportViewer.

For your workaround:
<<to make the subreport items width equal or greater then the subreport width>>
I tried to set the widths of subreports, but failed.
Question:
1. Can you describe your workaround more so that we can use ReportViewer successfully.

Benson.
0
Hrisi
Telerik team
answered on 21 Nov 2007, 09:48 AM

Hello Benson,

I will explain exactly what the problem is. The only report items that can grow horizontally are SubReport items. In the main report as they have Location and Size.

If there are items(including another subreport items) placed left from the subreport item they can shift this item to the right, changing its Location.

The SIze of the subreport item can grow to the width of the ReportSource (the sub report itself).
All this calculations are made runtime during the rendering stage of the report.

If the runtime Location.X + Size.Width of the subreport item exceed the page width minus margins width our image rendering extension does not calculate correctly position of this item on the next horizontal page.

And this lead us to the workaround: runtime Location.X + Size.Width of the subreport item should be smaller than page width minus left and right margin. In most cases Location.X is the same as the design-time location and Size.Width is the same as the subreport item ReportSource width and you can calculate in advance if there is the problem.

I hope this information helps. Thank you.

Regards,

Hrisi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Steven
Top achievements
Rank 1
Answers by
Hrisi
Telerik team
Benson
Top achievements
Rank 1
Share this question
or