Copy the page automatically from the current richtextbox to new richtextbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • damtoii
    New Member
    • Jan 2014
    • 9

    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 printpreviewdia log 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
    {
    PrintPreviewDia log1.Document = PrintDocument1;
    PrintPreviewDia log1.ShowDialog ();
    PrintPreviewDia log1.WindowStat e = FormWindowState .Maximized;


    }
    catch (Exception ex)
    {
    MessageBox.Show (ex.Message.ToS tring(), "Error");
    }
Working...