Telerik Reporting empty spaces when text in html textbox is too long

1 Answer 48 Views
.NET Framework Report Viewer - WinForms
Elliot
Top achievements
Rank 1
Elliot asked on 01 Jul 2024, 07:24 AM

Hello,

I've been having an issue with the reporting during the exporting to PDF.
When the text is too long, there seems to be a blank space before the actual text appears. (See images)

I've tried to manipulate the width of the report, textbox, the tables and containers, but nothing seems to work.
I've also tried several properties (CanGrow, CanShrink, KeepTogether, GroupKeepTogether, etc.

Is this as expected, or is there some workaround with it?

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 03 Jul 2024, 02:40 PM

Hello, Elliot,

I am sorry to hear that you are facing any difficulties with the Telerik Reporting product. As you have already probably found out, by default, the HtmlTextBox report item has its size set. To allow the HtmlTextBox to expand vertically based on its content, set its CanGrow property to its default True value. To allow the HtmlTextBox to shrink based on its content, set its CanShrink property to True. By default, CanShrink is set to False. Note that the HtmlTextBox will always grow to accommodate the first line of text even when CanGrow is False.

Please have a look at the Known Limitations of the HtmlTextBox and Avoid Blank Pages in PrintPreview.

How many characters are available in the text box?

It would be greatly appreciated if you can share the sample report file so we can further inspect it and have a close look of the precise case.

Thank you in advance for your cooperation. I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.
Tags
.NET Framework Report Viewer - WinForms
Asked by
Elliot
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or