Solved

Getting User printing Choices from windows

Posted on 2011-02-24
7
332 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
  • 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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

If you use a Brother DCP 130C or similar Brother printer, at some point you might encounter the following problem: after you change the ink cartridge, the printer displays an "ink empty" message. Sometimes you just need to follow the instructions…
Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

777 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