Hi support,
What is the straight and easiest way to avoid crashes in cases like : comments or footnotes in header&footer, page breaks or section breaks in table cells, etc, using Aspose.Word for java ?
Please advice,
Milan
Hi support,
What is the straight and easiest way to avoid crashes in cases like : comments or footnotes in header&footer, page breaks or section breaks in table cells, etc, using Aspose.Word for java ?
Please advice,
Milan
Hi
Thanks for your request.
try
{
builder.insertBreak(BreakType.PAGE_BREAK);
}
catch (java.lang.IllegalStateException ex)
{
// Do something.
}
if (builder.getCurrentParagraph().getParentNode().getNodeType() == NodeType.BODY)
{
builder.insertBreak(BreakType.PAGE_BREAK);
}
else
{
// Do something.
}
Hope this helps.
Best regards.