Export to docx and rtf footer issue

Stimulsoft Reports.WPF discussion
Post Reply
JorisWils
Posts: 86
Joined: Tue Jun 30, 2009 7:49 am
Location: belgium

Export to docx and rtf footer issue

Post by JorisWils »

Hi

I have 2 footers in my report.
The first is set to "OnlyFirstPage"
The second is set to "ExeptFirstPage"

When redering the report, the first page has the first footer and the rest of the pages has the second footer

When exporting to docx or rtf, all the pages have the first footer.

Any ideas?
Using Stimulsoft since 2007
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Export to docx and rtf footer issue

Post by Ivan »

Hello,

Please try to uncheck the "Use Page Headers and Footers" checkbox (set the property to false).

Thank you.
JorisWils
Posts: 86
Joined: Tue Jun 30, 2009 7:49 am
Location: belgium

Export to docx and rtf footer issue

Post by JorisWils »

Then ofcourse the footer shifts to the next page when I add data. So this is not actually a sollution for me.
Using Stimulsoft since 2007
JorisWils
Posts: 86
Joined: Tue Jun 30, 2009 7:49 am
Location: belgium

Export to docx and rtf footer issue

Post by JorisWils »

Any other sollutions? anyone?
Using Stimulsoft since 2007
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Export to docx and rtf footer issue

Post by Ivan »

Hello,

Please send to us a mrt file with data for analysis.

Thank you.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Export to docx and rtf footer issue

Post by Ivan »

Hello,
When redering the report, the first page has the first footer and the rest of the pages has the second footer
When exporting to docx or rtf, all the pages have the first footer.
Please try to set the ExcelSheet property of "Header" page of report template to "page1" string or any other string.

Tips:
If you set "Use Page Headers and Footers", then PageHeaders and PageFooters will appear
as MS-Word objects, and save the exact view of report is no longer possible.
But if in each page in the property "ExcelSheet" write any expression, for example,
"page1", "page2" etc., these pages will appear as separate sections of the document
with its header and footer. Pages with the same expressions in "ExcelSheet" will be joined together in one section.
Additionally.... The page border is not rendered correctly when exporting to rtf.
Tips for creating report templates for export to MS-Office:
- Use the button "Align to grid" in designer. This will reduce the number of rows and columns in the output file, and report will look better.
- Do not use the Autowidth property - this property is greatly increases the number of columns in the output file.
- To draw a frames, do not use Shapes, please use Horizontal and Vertical lines;

When exporting to Word and Excel entire report is transformed into one large continuous table.
Paragraphs 1 and 2 are very relevant, because MS-Word allows a maximum of 64 columns in the table.
If a table has more than 64 columns - a document displayed incorrectly.

You can use trick with ExcelSheet property and divide big table into sections.
And whitespaces between text seem to be bigger when exporting to rtf.
By default MS-Word use the Calibri,12 font for cells of table.
So the height of blank lines increases.
In the next prerelease build we add the new static property StiOptions.Export.Rtf.ForceLineHeight, by default false.
Please try to set this property to true.

Thank you.
JorisWils
Posts: 86
Joined: Tue Jun 30, 2009 7:49 am
Location: belgium

Export to docx and rtf footer issue

Post by JorisWils »

A great big thank you for this detailed explaination. I will try this out as soon as possible.

Thx! :-)
Using Stimulsoft since 2007
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Export to docx and rtf footer issue

Post by Alex K. »

Hello,

Let us know if you need any additional help.

Thank you.
Post Reply