Bug in PrinterSetting ???

  • Thread starter Thread starter Babz
  • Start date Start date
B

Babz

Hi
Using the PrinterSettings class I want to get the No. Of copies of the
document to be printed. But it is always giving 1 as the copies to be
printed. I am using following code

dgPrintDialog.PrinterSettings.Copies = 2
dgPrintDialog.ShowDialog()
NoOfCopies= dgPrintDialog.PrinterSettings.Copies

What is wrong with this code. Most of the people have raised the same issue
and told that this is bug. If it is a bug is there any way to get the NoOf
copies?

Need Help

Nanda
 
* "Babz said:
Using the PrinterSettings class I want to get the No. Of copies of the
document to be printed. But it is always giving 1 as the copies to be
printed. I am using following code

dgPrintDialog.PrinterSettings.Copies = 2
dgPrintDialog.ShowDialog()
NoOfCopies= dgPrintDialog.PrinterSettings.Copies

What is wrong with this code. Most of the people have raised the same issue
and told that this is bug. If it is a bug is there any way to get the NoOf
copies?

I remember I saw this question in an other newsgroup some minutes ago...

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
 
Back
Top