strange behaviour and wrong display of rtf text

Stimulsoft Reports.NET discussion
Post Reply
DCollins
Posts: 9
Joined: Tue Nov 27, 2012 2:05 pm

strange behaviour and wrong display of rtf text

Post by DCollins »

Hello dear Stimulsoft support Team

We ran into a problem with your richtext controls.
Under certain circumstances the text is not correctly displayed in preview or in dynamically generated PDF-Documents.
wrong Output is marked with yellow line (dotted line Highlights correct Output)
wrong Output is marked with yellow line (dotted line Highlights correct Output)
rtf not displayed correctly in PDF.JPG (83.3 KiB) Viewed 1145 times
I have attached a simple mrt-File to display the problem.

The components of table5, table6 and table7 have exactly the same data in the rich text cells.
(I copied table5 to table6 and table6 to table7 and adjusted the component styles afterwards)
Also as far as I can tell the properties of the cells are the same (except for the component styles)
The RTF Formatting commands of the rtf text also seem to be ok.

But the result is different and not always correct
rtf partly not displayed correctly in designer preview.JPG
rtf partly not displayed correctly in designer preview.JPG (22.54 KiB) Viewed 1145 times
For example:
Table5_Cell3 – the rich text of the property is properly formatted but in the preview of the report the last line doesn’t start where it is supposed to start
But the preview of TableCellRichText4 is shown properly even though the only difference I can make out is the component style.

Can you be so kind and have a look into this problematic behavior? And maybe help us find a solution and or a work around?
I was using the latest pre release build 2014.1.1817.0 as well as the pre release build 2014.1.1817.0 to reproduce this behaviour.

Thank you very much in Advance
Attachments
rtf display problem.zip
collection of displays of rtf texts in questions
(270.41 KiB) Downloaded 155 times
rtfproblem.mrt
corresponding designer file
(148.45 KiB) Downloaded 170 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: strange behaviour and wrong display of rtf text

Post by HighAley »

Hello.

We have made some tests. And on one of our machines the Rich Text was shown right on other not.
We use Microsoft Rich Text Edit Control which have several bugs.
When the background of the Rich Text component is transparent the Rich Text is corrupted because different Microsoft library is used in this case.
As a workaround of this bug, please, try to change the background of the Rich Tex from Transparent to White.

Thank you.
Post Reply