Hi all,
I've been looking all day and haven't yet found a way to get or set the printing preferences on my printer.
More specifically Printing Preferences->Document Options->Output Type(overlay, document etc...)
I want to check what the setting for this value is and hopefully figure out how to set it.
I don't want a dialog box appearing to the user though. Users, when using my application, must have their default printer document properties set OUTPUTTYPE to OVERLAY. If you right-click your current printer select PROPERTIES then click PRINTING PREFERENCES, under DOCUMENT OPTIONS you'll see OUTPUT TYPE. Thats the field I want to access, ie: get or set the value from there. I basically want to check the OUTPUTTYPE see if it is OVERLAY, if so then do nothing, if not then either inform the user to change the setting OR change the setting from let's say DOCUMENT to OVERLAY.
You'd think those settings would be stored in the registry. So I could access that value like the code below.
Microsoft::Win32::RegistryKey *regPrinter;
String *GetPrinterPort="";
String *keyValue;
keyValue = String::Concat("SYSTEM\\CurrentControlSet\\Control\\Print\\Printers\\", printer);
regPrinter = Microsoft::Win32::Registry::LocalMachine->OpenSubKey(keyValue);
if (regPrinter) {
GetPrinterPort = dynamic_cast<String*>(regPrinter->GetValue("Port"));
regPrinter->Close();
}
Unfortunately I don't see anything under my printer registry settings concerning the OUTPUTTYPE.
At this point I'm thinking it might not be available. Any suggestions would be great everyone.
Has anyone ever seen this before?
HELP!
Any help would be greatly appreciated.
Thanks,
Todd
I've been looking all day and haven't yet found a way to get or set the printing preferences on my printer.
More specifically Printing Preferences->Document Options->Output Type(overlay, document etc...)
I want to check what the setting for this value is and hopefully figure out how to set it.
I don't want a dialog box appearing to the user though. Users, when using my application, must have their default printer document properties set OUTPUTTYPE to OVERLAY. If you right-click your current printer select PROPERTIES then click PRINTING PREFERENCES, under DOCUMENT OPTIONS you'll see OUTPUT TYPE. Thats the field I want to access, ie: get or set the value from there. I basically want to check the OUTPUTTYPE see if it is OVERLAY, if so then do nothing, if not then either inform the user to change the setting OR change the setting from let's say DOCUMENT to OVERLAY.
You'd think those settings would be stored in the registry. So I could access that value like the code below.
Microsoft::Win32::RegistryKey *regPrinter;
String *GetPrinterPort="";
String *keyValue;
keyValue = String::Concat("SYSTEM\\CurrentControlSet\\Control\\Print\\Printers\\", printer);
regPrinter = Microsoft::Win32::Registry::LocalMachine->OpenSubKey(keyValue);
if (regPrinter) {
GetPrinterPort = dynamic_cast<String*>(regPrinter->GetValue("Port"));
regPrinter->Close();
}
Unfortunately I don't see anything under my printer registry settings concerning the OUTPUTTYPE.
At this point I'm thinking it might not be available. Any suggestions would be great everyone.
Has anyone ever seen this before?
HELP!
Any help would be greatly appreciated.
Thanks,
Todd