Text field with Dynamic value overlaps next element in PDF Report

0

I have multiple elements in same line, and text fields have dynamic values so when text field values excessed certain length, it overlaps over next element in the line. If element is last in line the value gets truncated. I am looking for a way by which I can set the width of text field and position of the elements dynamically at run time, so that I can move the elements to the next line in pdf if it does not fit with in A4 size.

 

Thanks

manoj.sharma637's picture
Joined: Nov 25 2019 - 1:57am
Last seen: 2 days 15 hours ago

2 Answers:

0

Sounds as you just forgot to set the Flag "StretchWithOverflow" at your TextField to true. Be aware that each element below such a stretching textfield should have PositionType set to "Float" instead the default "FixRelativeToTop"

The width of a textfield can't be modified at runtime, as TextFields can just stretch to bottom and not to the right (when I understood your question right, you have asked for any way to do something like that, isn't it?)

hth + regards

C-Box

C-Box's picture
2250
Joined: Jul 19 2006 - 5:58pm
Last seen: 1 week 2 days ago
0

Thanks C-Box,

Yes I am looking for the way to adjust the width and position of element or the font size of text filed. With "StretchWithOverflow"  issue i am facing is i have currency to display on pdf, so lets say i need to display $ 4567885667.44 on pdf it will be displayed as below 

$ 456788

  5667.44

Which does not make sense.  So if there is any way to set font size of text field  at run time will be helpful

Thansk

Manoj

manoj.sharma637's picture
Joined: Nov 25 2019 - 1:57am
Last seen: 2 days 15 hours ago
Feedback
randomness