private void PrintDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { rtbDoc1.Rtf = rtbDoc.Rtf; checkPrint = rtbDoc1.Print(checkPrint, rtbDoc.TextLength, e); if (checkPrint < rtbDoc.TextLength) { e.HasMorePages = true; } else { e.HasMorePages = false; } }
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { RichTextBoxPrintCtrl rtf = ((FormEditor)ActiveMdiChild).rtfEditor; checkPrint = rtf.Print(checkPrint, rtf.TextLength, e); if (checkPrint < rtf.TextLength) { e.HasMorePages = true; } else { e.HasMorePages = false; } }