RichText printed differently when previewed (v2013.3)

Stimulsoft Reports.WPF discussion
Post Reply
WalterJKR
Posts: 22
Joined: Tue Mar 18, 2014 6:41 am

RichText printed differently when previewed (v2013.3)

Post 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?
Attachments
photo of results (printed pages)
photo of results (printed pages)
richtext.jpg (204.59 KiB) Viewed 2076 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

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

Post by HighAley »

Hello.

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

Thank you.
WalterJKR
Posts: 22
Joined: Tue Mar 18, 2014 6:41 am

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

Post 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).
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

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

Post 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.
Post Reply