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