Content exported to word file doesn't look same as preview

Stimulsoft Reports.WPF discussion
Post Reply
Da Xin
Posts: 1
Joined: Wed Aug 15, 2018 8:28 am

Content exported to word file doesn't look same as preview

Post by Da Xin »

Hello,

We have a project needs report functionality. So we start evaluating Stimulsoft Reports.Wpf to check if it meets our project's requirement. We want to exports the data that created by our application as a word file. The the report content has two different types of data. One is just static rich text which can be loaded from existing rft files, the other type are tables that need to be dynamically created. Stimulsoft has great support on dynamically creating tables. At the same time we meet some problems while export the report as word file. List below are issues we met.

1. The report content is exported as a giant table in word file.
Is it possible to export the report content without the giant table?

2. Page header doesn't show at word header area.
Please refer to "PageHeaderLocation.png" in attachement.

3. We want each chapter to start from a new page so we put each chapter inside a databand and set the databand "New Page After" property to true. This works in preview, but if we export it as word file the "New Page After" setting seems ignored during the exporting. Please refer to the template ("rtfTest-SinglePage-With-MultiDataband.mrt") and the exported word file ("Report.docx") in attachment.

4. Unexpected space is added between content.
Please refer to the "UnexpectedSpace.png" in attachment.

5. Picture in rich text is cut off in preview and exported pdf file.
Please refer to "FigureIsCutOffInPreview.png" and "FigureIsCutOffInExportedPdf.png" in attachment

Thanks
DaXin
Attachments
WordExportIssue.zip
(989.58 KiB) Downloaded 285 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Content exported to word file doesn't look same as preview

Post by HighAley »

Hello.
1. The report content is exported as a giant table in word file.
Is it possible to export the report content without the giant table?
No, we use table mode to export the report to Word.
But you could use the rtfparagraph command.
2. Page header doesn't show at word header area.
Please refer to "PageHeaderLocation.png" in attachement.
There is a Use Page Header and Footer export option.
We see that you use this option.
Also we see that the margins of the page are one inch size.
That is why you get the header in this place.
You could see the same margins in the Word document.
3. We want each chapter to start from a new page so we put each chapter inside a databand and set the databand "New Page After" property to true. This works in preview, but if we export it as word file the "New Page After" setting seems ignored during the exporting. Please refer to the template ("rtfTest-SinglePage-With-MultiDataband.mrt") and the exported word file ("Report.docx") in attachment.
It's better to put the chapters on different pages and set different the Excel Sheet property for each page.
In this case, new table for new page will be created.
4. Unexpected space is added between content.
Please refer to the "UnexpectedSpace.png" in attachment.
This is a specific issue of a specific RichText. You could set the Unlimited Height = True and Unlimited Breakable = False to get better result.
5. Picture in rich text is cut off in preview and exported pdf file.
Please refer to "FigureIsCutOffInPreview.png" and "FigureIsCutOffInExportedPdf.png" in attachment
This is an issue of the rounding. The formats are different and the line was cut.
You will not get such issue if add the image straight in our product.

Some issues are very specific and we should see your real report to help you necessary result.

Thank you.
Post Reply