|
-
Mar 7th, 2001, 12:59 PM
#1
Thread Starter
Hyperactive Member
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...
Achichincle
VB6 (VSEE SP5, W2KPro)
ASP
HTML
-
Mar 7th, 2001, 01:08 PM
#2
Thread Starter
Hyperactive Member
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?
Last edited by Achichincle; Mar 7th, 2001 at 01:49 PM.
Achichincle
VB6 (VSEE SP5, W2KPro)
ASP
HTML
-
Mar 7th, 2001, 02:34 PM
#3
Thread Starter
Hyperactive Member
Come on guys, I know you know...
Achichincle
VB6 (VSEE SP5, W2KPro)
ASP
HTML
-
Mar 7th, 2001, 02:59 PM
#4
PowerPoster
Can't you just use the common dialog control and use
Code:
Private Sub Command1_Click()
CommonDialog1.ShowPrinter
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|