public void insertBreak(DocX document, String filename)
{
DocX tempDocx = DocX.Create(filename);
setPageMargin(tempDocx);
document.InsertDocument(tempDocx);
document.InsertSectionPageBreak(true);
}
改为
public void insertBreak(DocX document, String filename)
{
DocX tempDocx = DocX.Create(filename);
setPageMargin(tempDocx);
document.InsertDocument(tempDocx);
//document.InsertSectionPageBreak(true);
Paragraph p = document.InsertParagraph();
p.InsertPageBreakAfterSelf();
}