Hi Luis,
To resolve this issue where text overflows from one textbox
into the adjacent one in a report, you can use the MultilineText API or the AutoResizeText
API. Here's an explanation and a sample for each approach:
Option 1: Using MultilineText API
The MultilineText API allows the text to wrap within the
specified width of the textbox. This ensures that the content is confined to
the textbox without overflowing.
Example (using MultilineText):
|
leftTextBoxField.Multiline
= true; // Enable multiline (text wrapping)
|
In this example, setting Multiline = true ensures that text
in the left textbox wraps inside the textbox without overflowing into the right
one.
Option 2: Using AutoResizeText API
Alternatively, the AutoResizeText API can be used if you'd
like the textbox size to adjust automatically to fit the content (e.g.,
expanding vertically to accommodate the entire text). However, if you're
looking to prevent overflow and keep the text within a fixed width, the MultilineText
approach is likely a better fit.
Example (using AutoResizeText):
|
//Enable
auto resize.
loadedField.AutoResizeText
= true;
|
In this example, enabling AutoResizeText allows the textbox
to expand vertically to fit the text without overflowing into adjacent
elements.
Conclusion:
- For
wrapping text within the textbox (to prevent overflow), use MultilineText.
- For
resizing the textbox to fit the content dynamically, use AutoResizeText.
Follow the links below for more information:
Working
with AutoResizeText | Syncfusion UG Documentation
Working
with Multiline Text in TextBoxField in the PDF document | Syncfusion UG
documentation
We request you to try this on your end and share with us the modified sample or steps to replicate the issue with us. So that we can assist with you further in this.
Regards,
Irfana J.