I am using the common dialog control to allow my users to select any printer
available to them. The code I am using keeps changing the selected printer
to the default printer........ ....I don't want that.
I can't find anything with a propar salution to my problem.
I JUST WANT TO PRINT A REPORT!!!!!!!
No setting needs to be changed, ever. I only want to get the selected printer
from the dialog and print to it.
This seems to allow me to print to the selected printer but still sets it as
the default.
System Specs:
Win XP Pro
Windows Visual Studio98
Visual Basic 6.0
Please reply.......... ...really need some help
Thanks
Spider1916
available to them. The code I am using keeps changing the selected printer
to the default printer........ ....I don't want that.
I can't find anything with a propar salution to my problem.
I JUST WANT TO PRINT A REPORT!!!!!!!
No setting needs to be changed, ever. I only want to get the selected printer
from the dialog and print to it.
This seems to allow me to print to the selected printer but still sets it as
the default.
Code:
Dim X As Printer frmPO.comdPrintPO.ShowPrinter For Each X In Printers If frmPO.comdPrintPO.hDC = X.hDC Then Set Printer = X End If Next X
Win XP Pro
Windows Visual Studio98
Visual Basic 6.0
Please reply.......... ...really need some help
Thanks
Spider1916
Comment