Richard Brown
Top achievements
Rank 2
Richard Brown
asked on 26 Nov 2007, 02:39 PM
Reporting 1.5
I have a letter style report with some data in the details section and several subreports. Prior to any subreport, the details section has a report wide, "can grow" text box containing variable length summary text information. When exporting to PDF, if the textbox is too long to be rendered completely on the first page, the report page breaks before the textbox rendering. This leaves a large blank space on the first page. The details section has Keeptogether explicity set to false. Any ideas on how to cause this to be paginated correctly?
I have a letter style report with some data in the details section and several subreports. Prior to any subreport, the details section has a report wide, "can grow" text box containing variable length summary text information. When exporting to PDF, if the textbox is too long to be rendered completely on the first page, the report page breaks before the textbox rendering. This leaves a large blank space on the first page. The details section has Keeptogether explicity set to false. Any ideas on how to cause this to be paginated correctly?
8 Answers, 1 is accepted
0
Hello Richard,
The TextBox and PictureBox items by design are always kept together and it is not possible to command this behavior. Sections, however, behave in the opposite way - one can specify whether the section can span on two pages or not. The keep together feature is implemented exactly as you have explained - if a page break occurs in the middle of an item that should be kept together, this item goes right on top of the next page thus leaving the current page empty.
As far as the TextBox item is concerned, there is no other way to change the default behavior of this item. We may consider improving this behavior in a future version.
Greetings,
Svetoslav
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The TextBox and PictureBox items by design are always kept together and it is not possible to command this behavior. Sections, however, behave in the opposite way - one can specify whether the section can span on two pages or not. The keep together feature is implemented exactly as you have explained - if a page break occurs in the middle of an item that should be kept together, this item goes right on top of the next page thus leaving the current page empty.
As far as the TextBox item is concerned, there is no other way to change the default behavior of this item. We may consider improving this behavior in a future version.
Greetings,
Svetoslav
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
Mark
Top achievements
Rank 1
answered on 03 Apr 2012, 11:32 PM
Hi! I'm running into this exact same problem, and I'm using the latest version of Telerik Reporting. I was wondering if there was a way to get around this with the latest version?
0
Hello Mark,
The TextBox item has a KeepTogether property that defaults to True and can control whether an item should be kept together or not. I've attached a sample report which behaves as expected - notice how the TextBox is carried over to the second page when KeepTogether is True, when setting it to false it behaves as you expect. If you're still having problems, please provide us with a sample project that exhibits the problem and we would advise you accordingly.
Greetings,
Steve
the Telerik team
The TextBox item has a KeepTogether property that defaults to True and can control whether an item should be kept together or not. I've attached a sample report which behaves as expected - notice how the TextBox is carried over to the second page when KeepTogether is True, when setting it to false it behaves as you expect. If you're still having problems, please provide us with a sample project that exhibits the problem and we would advise you accordingly.
Greetings,
Steve
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
0
Mark
Top achievements
Rank 1
answered on 04 Apr 2012, 05:00 PM
I guess I don't have the exact same problem...because I'm using an HtmlTextBox which I suppose behaves differently. I'm guessing it's not possible to get around this problem if I'm using HtmlTextBoxes?
0
Hi Mark,
Actually it behaves in the same way - you can easily test it by replacing the TextBox in my example with an HtmlTextBox.
Greetings,
Steve
the Telerik team
Actually it behaves in the same way - you can easily test it by replacing the TextBox in my example with an HtmlTextBox.
Greetings,
Steve
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
0
Mark
Top achievements
Rank 1
answered on 04 Apr 2012, 06:21 PM
Not working on my project. Could this cause complications if SubReports are involved? I'm making everything's KeepTogether as False, and the HtmlTextBox is still being kept in one page.
0
Hi Mark,
It would work in a SubReport as well - I've attached modified sample. If you continue to have problems, it would be best to open a support ticket and send us a runnable sample that exhibits the problem.
Regards,
Steve
the Telerik team
It would work in a SubReport as well - I've attached modified sample. If you continue to have problems, it would be best to open a support ticket and send us a runnable sample that exhibits the problem.
Regards,
Steve
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
0
Mark
Top achievements
Rank 1
answered on 05 Apr 2012, 10:12 PM
Thanks for all the samples. My problem was quite silly on my end. I didn't realize that there was a "CanGrow" property for the HtmlTextBox. I set it to True, now I'm all good. Thanks for all your help!