Click to See Complete Forum and Search --> : Problem with printdialog


dixy
April 7th, 2008, 11:45 PM
Hello friends i am developing an application in which there is printing option...
The printing option is working well but the problem is when the printdialog shows and by default the numbers of copies is 1 and if i increase the numbers of copies 2 or 3 then its only print one copy only why number of copies option is not working....
How i will do to get numbers of copies print.....

CODE

int count = Application.OpenForms.Count;
for (int i = 1; i < count; i++)
{
PrintDialog myPrintDialog = new PrintDialog();
memoryImage = new System.Drawing.Bitmap(panel1.Width, panel1.Height);
panel1.DrawToBitmap(memoryImage, panel1.ClientRectangle);
if (myPrintDialog.ShowDialog() == DialogResult.OK)
{
myPrintDialog.Document = printDocument1;
printDocument1.PrintController = new StandardPrintController();
printDocument1.Print();
}
printDocument1.Dispose();
}