Hi,
a) I across on a difference between Preview and file saved as 'Adobe PDF File...', when using TEXT object with property DOCK STYLE = TOP. In some cases of text length, PDF file has additional empty line (while in Preview does not) as showed in attachment 'Example comparison Preview and PDF.png' .
Same behavior is in file saved as 'Microsoft Word File...' (in this case text length must bi larger few characters).
Examples are in attachment 'Example_NEW_LINE.mrt' , and it has 3 DATA BANDs (examples) with different TEXT object properties:
1. SHIFT MODE - Increasing Size, Decreasing Size,
2. default SHIFT MODE (Increasing Size) and
3. DOCK STYLE = TOP.
I prefer working with DOCK STYLE = TOP (3. example) so we can watch only that case.
One workaround to void that empty line is to put PANEL as parent for TEXT object, on PANEL set property DOCK STYLE = TOP, on TEXT object not (DOCK STYLE = None) and AUTO WIDTH = True. It works good on ALIGN LEFT, but does not for JUSTIFY (witch is practically commonly used on reports).
Is there a workaround for that case JUSTIFY or even better can it be fixed?
b) In addition, object RICH TEXT (it is not commonly used by me) does not have that behavior (in my tests). But in comparison to TEXT, character spacing is different - example 'Comparison TEXT and RICH TEXT.png' .
Likewise, on TEXT object with property ALLOW HTML TAGS = True has also different character spacing in comparison to ALLOW HTML TAGS = False - example 'Allow HTML tags True and False comparison.png' .
Because of that differences I can not use them together (at least not very often).
Can they (character spacing) be all the same?
Thanks
Difference between Preview and PDF - extra (new) line
-
- Posts: 8
- Joined: Wed Sep 20, 2017 8:05 am
- Location: Zagreb, Croatia
Re: Difference between Preview and PDF - extra (new) line
Hello,
We mane many fixes and improvements in that direction. Please check the last release.
Also, you can use the following option:
StiOptions.Export.Pdf.WinFormsHighAccuracyWordWrap = true;
Thank you.
We mane many fixes and improvements in that direction. Please check the last release.
Also, you can use the following option:
StiOptions.Export.Pdf.WinFormsHighAccuracyWordWrap = true;
Thank you.
-
- Posts: 8
- Joined: Wed Sep 20, 2017 8:05 am
- Location: Zagreb, Croatia
Re: Difference between Preview and PDF - extra (new) line
Hello,
option
StiOptions.Export.Pdf.WinFormsHighAccuracyWordWrap = true;
works.
Thank you.
option
StiOptions.Export.Pdf.WinFormsHighAccuracyWordWrap = true;
works.
Thank you.
Re: Difference between Preview and PDF - extra (new) line
Hello
We are always glad to help you!
Please let us know if you need any additional help.
Thank you.
We are always glad to help you!
Please let us know if you need any additional help.
Thank you.