Link to home
Start Free TrialLog in
Avatar of Tungaalper
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 GetPrintProcessorCapabilities functions.
But these are not using for conveying user choices.


Thanks in Advance
Avatar of Don Thomson
Don Thomson
Flag of Canada image

If the users are members of a domain - the chances are the group policies are allowing them to print and delete print jobs that they create - but not actually manage the printer - which would cause serveral of the print options to be greyed out.

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
Avatar of Tungaalper
Tungaalper

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.
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
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)
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
ASKER CERTIFIED SOLUTION
Avatar of Tungaalper
Tungaalper

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Find it MSDN