Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Report (.rdlc) / ReportViewer - How to break textbox' text into multiple parts when it's too long?

I have a TextBox in my Report's (.rdlc) body section. The size of the textbox' value is variable (can grow). The problem is, when the value is too long, a page break is generated before the textbox. I found the same question but no luck getting access the answer http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_26821256.html

like image 641
dpp Avatar asked Jun 11 '11 06:06

dpp


People also ask

How do I wrap text in Rdlc TextBox?

To get your textbox to wrap to the next page, just set KeepTogether to false. (Note that you have to use the Property Window (F4), not the TextBox Properties... dialog box.)

How do I change the line height of a text box in Rdlc?

Just set the TextBox (or Placeholder) markup type as HTML - Interpret HTML tags as style" . Then you can simply use CSS to format your text as wanted. Save this answer.

How do I hide a TextBox in Rdlc report text field?

If you want to hide any textbox in RDLC, you can do this using the visibility formula as below. Right-click on the TextBox and select TextBox Properties. From the Properties window select Visibility and click on "Show or hide based on an expression".


1 Answers

By default the KeepTogether property is set to true, causing the entire textbox to move to the next page. Set KeepTogether to false, and it will split it across multiple pages.

Note that you can't select this option from the TextBox Properties... dialog box; you have to set it from the Properties Window (F4).

like image 152
Dave Cousineau Avatar answered Sep 28 '22 18:09

Dave Cousineau