Page 1 of 1
Page break not work when exporting Word2007 Document.
Posted: Sat Apr 27, 2013 8:12 am
by ethan.shi
Hi,
I set NewPageAfter = true in my mrt file,
but it seems it does not work in the exported Word2007 Document.
However it works in the Pdf Document.
by the way , here is the code to export document.
Code: Select all
StiWord2007ExportService service1 = new StiWord2007ExportService();
StiWord2007ExportSettings settings = new StiWord2007ExportSettings();
settings.UsePageHeadersAndFooters = true;
FileStream fs1= File.Create(strOutputFilePath + ".service.docx");
service1.ExportWord(report, fs1, settings);
fs1.Close();
- test.mrt
- (26.34 KiB) Downloaded 224 times
Re: Page break not work when exporting Word2007 Document.
Posted: Mon Apr 29, 2013 1:30 pm
by HighAley
Hello.
You should either set the UsePageHeadersAndFooters export setting to false or
5.6.2.1.1 Table Modes of User Manual wrote: it is possible to export a separate sheets of a template to separate sections of the document with
the headers/footers. To do this, use the ExcelSheet property. in this case all pages of a report with the
same value of the ExcelSheet property are combined in groups, then each group is exported as a
separate section of the document with its headers/footers. By default, this property is not filled, and the
report is exported as a single partition.
Thank you.
Re: Page break not work when exporting Word2007 Document.
Posted: Tue Apr 30, 2013 6:36 am
by ethan.shi
Aleksey Andreyanov wrote:Hello.
You should either set the UsePageHeadersAndFooters export setting to false or
5.6.2.1.1 Table Modes of User Manual wrote: it is possible to export a separate sheets of a template to separate sections of the document with
the headers/footers. To do this, use the ExcelSheet property. in this case all pages of a report with the
same value of the ExcelSheet property are combined in groups, then each group is exported as a
separate section of the document with its headers/footers. By default, this property is not filled, and the
report is exported as a single partition.
Thank you.
Hi, Aleksey
"5.6.2.1.1 Table Modes of User Manual" is about RTF formt, but I need Word2007 Format(/.docx),
Does the ExcelSheet property works in docx?
Re: Page break not work when exporting Word2007 Document.
Posted: Tue Apr 30, 2013 6:55 am
by ethan.shi
ethan.shi wrote:Aleksey Andreyanov wrote:Hello.
You should either set the UsePageHeadersAndFooters export setting to false or
5.6.2.1.1 Table Modes of User Manual wrote: it is possible to export a separate sheets of a template to separate sections of the document with
the headers/footers. To do this, use the ExcelSheet property. in this case all pages of a report with the
same value of the ExcelSheet property are combined in groups, then each group is exported as a
separate section of the document with its headers/footers. By default, this property is not filled, and the
report is exported as a single partition.
Thank you.
Hi, Aleksey
"5.6.2.1.1 Table Modes of User Manual" is about RTF formt, but I need Word2007 Format(/.docx),
Does the ExcelSheet property works in docx?
Hi, Aleksey
It works! Thank you!
Re: Page break not work when exporting Word2007 Document.
Posted: Wed May 01, 2013 6:52 am
by Andrew
Great!
Have a nice day!