Difference between WPF and GDI export to Word

Stimulsoft Reports.WPF discussion
Post Reply
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Difference between WPF and GDI export to Word

Post by LukasT »

Hello,
output from export to Word using Stimulsoft.Base.StiGuiMode.Wpf is now broken.... see attached example where you can see difference.... :-(
Attachments
export_WPF.docx
(9.37 KiB) Downloaded 228 times
export_GDI.docx
(7.48 KiB) Downloaded 232 times
ExportWordDifferenceWPF_vs_GDI.mdc
(43.49 KiB) Downloaded 318 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Difference between WPF and GDI export to Word

Post by HighAley »

Hello.

We couldn't reproduce your issue.
Please, send us your report template with sample data.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Difference between WPF and GDI export to Word

Post by LukasT »

Hello,
I don't understand why you need template with data.... please, simply open .mdc file in WpfViewer/Viewer and then try to export to Word format... i.e. the horizontal lines are thick.... the last prerelease still has this issue...
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Difference between WPF and GDI export to Word

Post by HighAley »

Hello.

Yes, we can reproduce the issue, but if you need it will be fixed, we need to see your report template.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Difference between WPF and GDI export to Word

Post by LukasT »

Ok, I am going to prepare data....
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Difference between WPF and GDI export to Word

Post by LukasT »

Please, see example.... Yes, I know, that the line designed using text object with background is stupid, but it is example of report converted from old reporting utility... the fact is, that export is different....
Thank you.
Attachments
Report.mrt
(8.24 KiB) Downloaded 211 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Difference between WPF and GDI export to Word

Post by HighAley »

Hello.

When you set Use Page Header and Footer option of Word2007 export the text components have no fixed size and change it to fit text.
You should set the StiOptions.Export.Word2007.LineHeightExactlyForPHFMode option to true.

Thank you.
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Re: Difference between WPF and GDI export to Word

Post by LukasT »

Hello.
Thanks for the advice.... Problem is solved ;-)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Difference between WPF and GDI export to Word

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you have any additional help.

Thank you.
Post Reply