How to programmatically select the default printer (1 Viewer)

Status
Not open for further replies.

MStCyr

New member
Local time
Today, 14:30
Joined
Sep 18, 2003
Messages
333
This example shows how to select and set the default printer.
 

Attachments

  • SelectDefaultPrinter.zip
    46.3 KB · Views: 3,461

Fear Naught

Kevin
Local time
Today, 18:30
Joined
Mar 2, 2006
Messages
229
This is excellent but it does not work on my XP Pro machine. Checking the OSinfo.???? information my machine does not meet any of the parameters set in the OnDoubleClick event and therefore the SUB Exits.
 

MStCyr

New member
Local time
Today, 14:30
Joined
Sep 18, 2003
Messages
333
The app was developed for a Win 98 environment. I should have mentioned that.
 

MStCyr

New member
Local time
Today, 14:30
Joined
Sep 18, 2003
Messages
333
The app was developed for a Win 98 environment. I should have mentioned that.
 

MStCyr

New member
Local time
Today, 14:30
Joined
Sep 18, 2003
Messages
333
The app was developed for a Win 98 environment. I should have mentioned that.
 

Fear Naught

Kevin
Local time
Today, 18:30
Joined
Mar 2, 2006
Messages
229
Interesting. The list box does pick up my available printers. do you have the code to change the default printer in an XP or Win2000/2003 environment
 

Smart

Registered User.
Local time
Today, 18:30
Joined
Jun 6, 2005
Messages
436
Works ok on my xp machine
 
Status
Not open for further replies.

Users who are viewing this thread

Top Bottom