Change printerproperties permanently

Windows specific forum
Heinz123
User
User
Posts: 14
Joined: Sat Feb 25, 2012 8:54 am
Location: Germany

Change printerproperties permanently

Post 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
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Change printerproperties permanently

Post 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.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply