예제 #1
0
        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;
            }
        }
예제 #2
0
        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;
            }
        }