Hello,
I need to change printer properties like tray or papersize etc.
For this I want to display the "printer properties dialog" or optionally the "printer setup dialog"
(This is selectable with "PD_PRINTSETUP")
The changes to the properties should be for the next print job and optionally I need the changes to be saved permanently
(I'm not sure but here it seems that the DEVMODE structure comes into play?)
I've found "PrintDlg" API function :
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646940(v=vs.85).aspxBut with PrintDlg the changes made in the printer properties are only for a particular print job and not permanent
("Displays a Print Dialog Box or a Print Setup dialog box. The Print dialog box enables the user to specify the properties of a particular print job.")
But I'd need an option that allows to save the changes permanently
There is another Function "PrintDlgEx" :
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646942(v=vs.85).aspxBut like PrinterDlg the change made to the properties are not permanent but only for "a particular print job")
("Displays a Print property sheet that enables the user to specify the properties of a particular print job")
And there is also a function "DocumentProperties" which allows to change printer settings, too
Maybe this is the way to go ?
(at least in the description I can not find anything abgut a "particular print job")
http://msdn.microsoft.com/en-us/library/windows/desktop/dd183576(v=vs.85).aspxmaybe we need a combination of PrintDlg / PrintDlgEx and DocumentProperties ?
Heinz