Page 1 of 1

RichText printed differently when previewed (v2013.3)

Posted: Tue Mar 18, 2014 8:52 am
by WalterJKR
When previewed using WPF Preview, richtext is printed differently - letters have different spaces between each letters.

Original RTF:

Code: Select all

{\rtf1\ansi\ansicpg1252\uc1\htmautsp\deff2{\fonttbl{\f0\fcharset0 Times New Roman;}{\f2\fcharset0 Segoe UI;}{\f3\fcharset0 Arial;}}{\colortbl\red0\green0\blue0;\red255\green255\blue255;}\loch\hich\dbch\pard\plain\ltrpar\itap0{\fs21\f3\cf0 \cf0\ql{\fs18\f3 {\ltrch Dodr\'9ete pros\'edm term\'edn splatnosti. D\u283?kujeme. }\li0\ri0\sa0\sb0\fi0\ql\par}
}
}
Procedure 1:
- print the report using Print method

Procedure 2:
- show preview using ShowWithWpf method
- while previewing select Print in the Preview window

See the attachment with highlighted problem-parts.

The problem is present in the pre-release build 2014.1.1815.

What should I do to get the problem fixed?

Re: RichText printed differently when previewed (v2013.3)

Posted: Tue Mar 18, 2014 10:51 am
by HighAley
Hello.

Print method use WinForms technology and there is some problems with printing RichText.
You should use PrintWithWpf method.

Thank you.

Re: RichText printed differently when previewed (v2013.3)

Posted: Wed Mar 19, 2014 9:47 am
by WalterJKR
Awesome, that's it! Thank you.

... for the record: we've had another problem with exporting report to PDF. tried RenderWithPpf method but unsuccessful.
This problem can be fixed by setting richtext property WYSIWYG = true (we set it in code before rendering report for export).

Re: RichText printed differently when previewed (v2013.3)

Posted: Thu Mar 20, 2014 8:58 am
by HighAley
Hello.

We are always glad to help you.
There are some difficulties with exporting Rich Text so it's better to use WYSIWYG mode as you do.

Thank you.