Quantcast
Viewing all articles
Browse latest Browse all 12583

Copy the page automatically from the current richtextbox to new richtextbox

I created a richtextbox and I can input some text and also I add the printpreviewdialog for me to determine if how many pages in my first richtextbox. Now I want to copy some pages automatically for example the if the first richtextbox contains a 4pages and I would like to copy only the 2nd page and it is automatic copy without highlighted the text to the second richtextbox. How could it be ?
 
To determined if how many pages in my first richtextbox I used this codes:
 
try
{
PrintPreviewDialog1.Document = PrintDocument1;
PrintPreviewDialog1.ShowDialog();
PrintPreviewDialog1.WindowState = FormWindowState.Maximized;

 
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString(), "Error");
}

Viewing all articles
Browse latest Browse all 12583

Trending Articles