Page 1 of 1

Change printerproperties permanently

Posted: Sat Feb 25, 2012 9:03 am
by Heinz123
Hi,

I'm looking for a way to display the printerproperties dialog and save changes to the properties (Duplex, papersize, orientation etc.) permanently.
So changes will be maintained also on the reboot of the PC

I've found some code here http://www.purebasic.fr/english/viewtopic.php?p=169814 , but changes made there are not permanent.

Thanks

Heinz

Re: Change printerproperties permanently

Posted: Sat Feb 25, 2012 9:45 pm
by IdeasVacuum
That could be difficult to do since every printer has it's own driver and also, in 'Printers and Faxes', a User friendly name is used, not necessarily the name that the system 'knows'. Plus, a registry search could find entries for print devices that no longer exist. I think a method that launches the printer's control app (RunProgram) is probably the way to go, but finding those apps is the challenge.