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();