View Full Version : How to programmatically select the default printer


MStCyr
04-12-2006, 08:13 AM
This example shows how to select and set the default printer.

Fear Naught
04-13-2006, 01:48 AM
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
04-13-2006, 03:41 AM
The app was developed for a Win 98 environment. I should have mentioned that.

MStCyr
04-13-2006, 03:42 AM
The app was developed for a Win 98 environment. I should have mentioned that.

MStCyr
04-13-2006, 03:42 AM
The app was developed for a Win 98 environment. I should have mentioned that.

Fear Naught
04-13-2006, 03:58 AM
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
04-13-2006, 04:14 AM
Works ok on my xp machine