Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Getting User printing Choices from windows

Posted on 2011-02-24
7
Medium Priority
?
351 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:Tungaalper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 14

Expert Comment

by:Don Thomson
ID: 34988651
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
0
 

Author Comment

by:Tungaalper
ID: 34989315
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.
0
 
LVL 14

Expert Comment

by:Don Thomson
ID: 34991221
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
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:Tungaalper
ID: 34991245
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)
0
 

Author Comment

by:Tungaalper
ID: 35067841
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
0
 

Accepted Solution

by:
Tungaalper earned 0 total points
ID: 35068450
Thanks guys I found it MSDN but it is not for win32 I think.

ATTRIBUTE_INFO_4 Structure

The ATTRIBUTE_INFO_4 structure is used as a parameter for a printer interface DLL's DrvQueryJobAttributes function. All member values are function-supplied. This structure is similar to ATTRIBUTE_INFO_3, but it includes additional members to control N-up, duplex and booklet printing, and scaling.

http://msdn.microsoft.com/en-us/library/ff545096(v=vs.85).aspx
0
 

Author Closing Comment

by:Tungaalper
ID: 35120567
Find it MSDN
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question