I have a RichEditBox control that I would like to print. However, I can’t find a way to have content that overflows get put on a new page. (In the case of a multiple page document) How can I do this? all help is appreciated.
private void AddPages(object sender, AddPagesEventArgs e)
{
string text;
richEdit.GetText(TextGetOptions.FormatRTF, text);
RichEditBox richTextBlock = new RichEditBox();
richTextBlock.Document.SetText(TextSetOptions.FormatRtf, text);
richTextBlock.Background = new SolidColorBrush(Windows.UI.Colors.White);
richTextBlock.Padding = new Thickness(20,20,20,20);
printDoc.AddPage(richTextBlock);
// Indicate that all of the print pages have been provided
printDoc.AddPagesComplete();
}