-
How do I find out what the default printer is?
From what I've read in MSDN I can set the default printer for my application by:
Set objPrinter = Printers(i)
But how do I find out which is the default printer so I can set it back to that once I'm done printing?
Is there another way of printing to a printer without setting it as a default printer?
I've got several DataReports in my application but some of them need to go to different printers. I guess I'm just floundering about looking for the best way to do this...
Thanks...
-
Ok. Related to this is another question:
My application will have to print on a network printer. How can I implement a 'setup'-type process whereby I can specify, for a given client computer, what the network printer it should print to.
Clearer. My application has to print one report on a printer attached to a server on the network. All clients will print that specific report to that specific printer. I envision a process whereby I can go into a Preferences section of my application and specify the target printer for that particular report. Since the clients may have the printer attached with different names I cannot assume that it will always have the same name regardless of the client (and therefore cannot hardcode it, which wouldn't be smart anyway...)
Ideas?
-
Come on guys, I know you know...
-
Can't you just use the common dialog control and use
Code:
Private Sub Command1_Click()
CommonDialog1.ShowPrinter
End Sub