This is a migrated thread and some comments may be shown as answers.

WPF print preview doesn't always show bold

3 Answers 115 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 26 Jun 2015, 07:14 AM

Hello,

here are two views from the same report: one with the WPF print preview and one from the PDF generated from the same report.

As you can see, the PDF is correct: it has the winning teams marked in bold, but the print preview doesn't show the bold.

3 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 26 Jun 2015, 10:27 AM
Hi Patrick,

In print preview mode of the viewer you are seeing the report rendered in XAML format. The same report is rendered in PDF on export, thus the settings must be the same. A possible cause of the problem might be external style setters affecting the rendered XAML (canvas, standard TextBlock elements and etc.). Please test excluding external styles and if the problem still appears.

If you need further help, please open a support ticket and send us a demo project illustrating the problem. You can use the local demos under C:\Program Files (x86)\Telerik\Reporting Q2 2015\Examples as a base for the demo.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 01 Jul 2015, 03:43 PM

Hi Stef,

I hope that this problem is not related to external style setters: it would mean that your WPF print preview is really broken. It should work whatever the external styles are. You just have to define a style setter that removes all other values...
In addition, I think that the Bold property is handled by code on your side and should not be influenced by a style.

For the demo project, I don't have time to do it now...

0
Stef
Telerik team
answered on 06 Jul 2015, 11:08 AM
Hi Patrick,

All report settings are used on processing and rendering the document. In the WPF ReportViewer the document is presented via Canvas with nested elements (XAML). If there is a setter targetting Canvas or TextBlock elements, the XAML in the viewer may be affected as well regardless their default settings.

Please open a support ticket and send us a demo project reproducing the problem in order to investigate it further and provide you more accurate suggestions.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Stef
Telerik team
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or