Difference between Preview and PDF - extra (new) line

Stimulsoft Reports.NET discussion
Post Reply
tomislav.krnjak
Posts: 8
Joined: Wed Sep 20, 2017 8:05 am
Location: Zagreb, Croatia

Difference between Preview and PDF - extra (new) line

Post by tomislav.krnjak »

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'
Example comparison Preview and PDF.png
Example comparison Preview and PDF.png (104.72 KiB) Viewed 2204 times
.
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'
Example_NEW_LINE.mrt
(18.98 KiB) Downloaded 289 times
, 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'
Comparison TEXT and RICH TEXT.png
Comparison TEXT and RICH TEXT.png (27.32 KiB) Viewed 2204 times
.

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'
Allow HTML tags True and False comparison.png
Allow HTML tags True and False comparison.png (99.63 KiB) Viewed 2204 times
.

Because of that differences I can not use them together (at least not very often).

Can they (character spacing) be all the same?

Thanks
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Difference between Preview and PDF - extra (new) line

Post by Alex K. »

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.
tomislav.krnjak
Posts: 8
Joined: Wed Sep 20, 2017 8:05 am
Location: Zagreb, Croatia

Re: Difference between Preview and PDF - extra (new) line

Post by tomislav.krnjak »

Hello,
option
StiOptions.Export.Pdf.WinFormsHighAccuracyWordWrap = true;
works.
Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Difference between Preview and PDF - extra (new) line

Post by Alex K. »

Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.
Post Reply