Height of text boxes in RTF

Stimulsoft Reports.WPF discussion
Post Reply
bg00071
Posts: 11
Joined: Wed Oct 12, 2011 4:18 am
Location: Belgium

Height of text boxes in RTF

Post by bg00071 »

Hi,

We've got a problem with some text boxes. When rendering a report everything seems fine: the text fits on 2 lines. (See example, paragraph 5.3.1)
However, when saving the report to RTF, the text doesn't fit on these 2 lines anymore and the last word or words disappear.

A solution we've used on an earlier occasion was to replace the (normal) text box with an RTF text box.
The RTF text box grows, resulting in showing the text on 3 lines in the RTF file (while 2 lines remain sufficient in the PDF file).

Will we have to replace all text boxes by RTF text boxes, or does another option exist to get correct RTF reports?
Attachments
1904.44842.mdc
(114.27 KiB) Downloaded 211 times
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Height of text boxes in RTF

Post by Ivan »

Hello,

Word and Excel allows you to set precisely the sizes of objects, but does not allow you to set the sizes of the text precisely.
Text drawing in Word and Excel is processed using their own methods and does not concur neither with GDI+ (Standard, Typographic) nor with GDI (WYSIWYG).
So please try to set the following static option:

Code: Select all

StiOptions.Export.Rtf.SpaceBetweenCharacters = -3;
StiOptions.Export.Word2007.SpaceBetweenCharacters = -3;
Thank you.
bg00071
Posts: 11
Joined: Wed Oct 12, 2011 4:18 am
Location: Belgium

Height of text boxes in RTF

Post by bg00071 »

Thanks Ivan, this is exactly what we needed! :biggrin:
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Height of text boxes in RTF

Post by Andrew »

Hello,

Great!

Thank you.
Post Reply