How can I insert a pagebreak at the end of a section containing a table?
The following code works if there are no tables in the section, but with tables, content is appended on the same page and no pages are added to the document.
curSection = _builder.CurrentParagraph.ParentSection
sectionTemplate = curSection.Clone(True)
lastParaIndex = curSection.Body.Paragraphs.Count - 1
builder.MoveToParagraph(lastParaIndex, -1) '// is this right way to move to EOSection?
'//builder.Write("XXX") '//inserts in 1st cell of table vs. section end- even if more paras after table
Maybe the question I need answered is:
How can I accomplish: DocBuilder.MovetoSection(SectionEnd)?