Using the code below, a page break is not occurring between the text preceding the ControlChar.PageBreak and the text after it. Am I doing something obviously wrong?
Dim para As Aspose.Words.Paragraph = New Aspose.Words.Paragraph(wordDocument)
Dim run As Aspose.Words.Run = New Aspose.Words.Run(wordDocument)
run.Text = “Before Page Break…” & Aspose.Words.ControlChar.PageBreak & _
"After PAGE BREAK HERE (NodeIndex = " & NodeIndex & “)”
run.Font.Color = System.Drawing.Color.Red
wordDocument.UpdatePageLayout() 'Necessary for added items to appear after call to GetStartPageIndex!