Solved

Getting User printing Choices from windows

Posted on 2011-02-24
7
344 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
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 

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

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
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.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

717 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