Tungaalper
asked on
Getting User printing Choices from windows
I have a question which we stuck in.
In our port monitor I am getting user choices about print job from JOB_INFO_2 and DEVMODE structures.
But I could not get or set some features of printer user interface. For example I could not get option called Nup (how many page per sheet).
Is there any way for solving this problem ?
When you print with Win32 Api How can you set up printing options ?
Some options are okay. I can set them in DEVMODE or JOB_INFO_2.
But some Features like Nup I could not set them in win32.
Closest structure and function which are may be related with Nup are PRINTPROCESSOR_CAPS_1 structure and GetPrintProcessorCapabilit ies functions.
But these are not using for conveying user choices.
Thanks in Advance
In our port monitor I am getting user choices about print job from JOB_INFO_2 and DEVMODE structures.
But I could not get or set some features of printer user interface. For example I could not get option called Nup (how many page per sheet).
Is there any way for solving this problem ?
When you print with Win32 Api How can you set up printing options ?
Some options are okay. I can set them in DEVMODE or JOB_INFO_2.
But some Features like Nup I could not set them in win32.
Closest structure and function which are may be related with Nup are PRINTPROCESSOR_CAPS_1 structure and GetPrintProcessorCapabilit
But these are not using for conveying user choices.
Thanks in Advance
ASKER
thanks for reply. but I believe there is misuderstanding.
basically i try to print with win 32 api. but i could not find structure that set up some feature of printer such as page per sheet.
basically i try to print with win 32 api. but i could not find structure that set up some feature of printer such as page per sheet.
Normally the Win 32 API will take ithe basic options that are available from the installed print driver - If the Group policy has restricted some of those functions, and they are not available to the Installed print driver, they would not be available to the win 32 api either
ASKER
Thanks for reply. It is very good to know for future of my project.
Do you know any structure or method other than DEVMODE and JOB_INFO. These structure or methods has to be published by msdn and should allows us to print win 32. Because in the documention of WIN32 as far as i know three is no any struture that allow us printing with Nup(peg per shett)
Do you know any structure or method other than DEVMODE and JOB_INFO. These structure or methods has to be published by msdn and should allows us to print win 32. Because in the documention of WIN32 as far as i know three is no any struture that allow us printing with Nup(peg per shett)
ASKER
I found it but can not be used directly from win 32. I have to write User interface plug in and set this structure.
ATTRIBUTE_INFO_4 Structure
http://msdn.microsoft.com/en-us/library/ff545096(v=VS.85).aspx
ATTRIBUTE_INFO_4 Structure
http://msdn.microsoft.com/en-us/library/ff545096(v=VS.85).aspx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Find it MSDN
The easiest way to solve if this is the case is to just modify the group policies
Log in to a workstation as the Domain administrator and see if everyting work the way you want - Then if it does - it will be a permissions thing