how to print multiple page using printDocument using C# with windows application RRS feed

  • Question

  • I have written the code for printing page in windows application using PrintDocument class.But problem is during printing page when page content is larger than page size its not coming on another page.I  m not able to undersatnd what to do?

    i m using this code with Printdocument object


    Print pr=new print();

    PageSetupDialog setup = new PageSetupDialog();

    setup.Document = pr.ReceiptDocument;

    setup.Document.DefaultPageSettings.PrinterSettings.FromPage = 1;

    setup.Document.DefaultPageSettings.PrinterSettings.ToPage = 2;


    pr.ReceiptDocument.Print();// RecieptDocument is the object of Printdocument class

    If anybody know this problem solution,please let me know.
    Friday, June 6, 2008 6:53 AM


All replies