Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
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");
}
Posted
Updated 12-Feb-14 18:12pm
v3
Comments
ZurdoDev 12-Feb-14 14:02pm    
Use the improve question link to add relevant code and show us where you are stuck.
Sergey Alexandrovich Kryukov 12-Feb-14 16:50pm    
If you say "RichTextBox", the question is: which one? Full type name, please...
—SA
Member 10332274 13-Feb-14 8:54am    
I already change my question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900