Click here to Skip to main content
12,557,906 members (52,588 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# printing
I have the code:
PrintDialog printDialog1 = new PrintDialog();
            printDialog1.UseEXDialog = true;
            printDialog1.AllowSomePages = true;
            printDialog1.AllowSelection = true;
            printDialog1.AllowPrintToFile = false;
            printDialog1.AllowCurrentPage = true;
            printDialog1.Document = printDocument1;
            if (printDialog1.ShowDialog() == DialogResult.OK)
I need to print only some pages, ex. page no. 3.
How to fix the code?
Posted 24-Feb-13 1:58am

1 solution

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161026.1 | Last Updated 24 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100