M
Mark Waser
Summary: dlgPrint.PrinterSettings.Copies always returns 1 regardless of
what the user entered
Details: When trying to print a document, I am first presenting the user
with the standard PrintDialog which was declared as "dim dlgPrint as new
PrintDialog()" After it is declared but before it is shown, a few
properties are set to some defaults including "dlgPrint.AllowSomePages =
true" "dlgPrint.AllowPrintToFile = false" and "dlgPrint.showNetwork = false"
Also, the dlgPrint.document property is set to a new instance of a
PrintDocument. To invoke the dialog, I am making a standard
"dlgPrint.showDialog()" call. If the return value is DialogResult.OK then
various fields are being used successfully such as
"dlgPrint.PrinterSettings.FromPage" and "dlgPrint.PrinterSettings.ToPage".
However, trying to see how many copies the user requested by checking
"dlgPrint.PrinterSettings.Copies" will always return a value of 1, whether
they have entered a 1 or a 5 or whatever.
Question: Is this a known bug? Is there any fix or workaround? - -
OR - - Is there any code which successfully does this that I can
use/modify?
I've tried looking at Google Groups, etc. and see some minor mention of a
problem like this but couldn't find the standard official acknowledgement.
Thanks.
what the user entered
Details: When trying to print a document, I am first presenting the user
with the standard PrintDialog which was declared as "dim dlgPrint as new
PrintDialog()" After it is declared but before it is shown, a few
properties are set to some defaults including "dlgPrint.AllowSomePages =
true" "dlgPrint.AllowPrintToFile = false" and "dlgPrint.showNetwork = false"
Also, the dlgPrint.document property is set to a new instance of a
PrintDocument. To invoke the dialog, I am making a standard
"dlgPrint.showDialog()" call. If the return value is DialogResult.OK then
various fields are being used successfully such as
"dlgPrint.PrinterSettings.FromPage" and "dlgPrint.PrinterSettings.ToPage".
However, trying to see how many copies the user requested by checking
"dlgPrint.PrinterSettings.Copies" will always return a value of 1, whether
they have entered a 1 or a 5 or whatever.
Question: Is this a known bug? Is there any fix or workaround? - -
OR - - Is there any code which successfully does this that I can
use/modify?
I've tried looking at Google Groups, etc. and see some minor mention of a
problem like this but couldn't find the standard official acknowledgement.
Thanks.