Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

How to set a page copies when you going to print

$
0
0

I created a printer command manually. I've used a richtextbox to have a text when I print then combobox for choosing or selecting a printers available and a button to print.

I've used this codes:

  private void button1_Click(object sender, EventArgs e)
        {
           PrintDocument1.PrinterSettings.PrinterName = cbox.SelectedItem.ToString();
            PrintDocument1.Print();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            foreach (String printer in PrinterSettings.InstalledPrinters)
            {
                        cbox.Items.Add(printer.ToString());
            }
     
        }

Now problem is how can I set the page copies ? For example my text contains of 6 pages then I want to print only 3 to 6 pages like in the Microsoft word when we going to print a document. What tool I'm gonna add and what codes to be add? Please help me to solve this problem. Thank you


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>