How to print many copies

E

ekey

Hi
follow function to print many copies but it only print one copy, my
document is only one page;
but i want to print many copies .such as three copies. how to do? Where do
it error?
THS

private void mn_file_print_Click(object sender, System.EventArgs e)
{
PrintDialog dlg = new PrintDialog();
dlg.AllowPrintToFile = true;
dlg.AllowSelection = true;
dlg.AllowSomePages = true;
dlg.Document = pd;
if(dlg.ShowDialog() == DialogResult.OK)
{
for(short page = 0; page < dlg.PrinterSettings.Copies; page++)
{
pd.Print();
}
}
}
 
R

Ron Allen

Framework 1.0 has a bug in the PrintDialog that never gets the settings for
Copies so it will always return 1. This is fixed in Framework 1.1.
Ron Allen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top