Solved

Code to call to get the specific printer options/properties dialog box.

Posted on 2007-11-27
4
592 Views
Last Modified: 2013-12-16
I'm making a custom page setup dialog box.  One of the buttons I am going to add is an "Options..." button.  This button should produce the same results as the Visual C# 2005 class PageSetupDialog/Printer.../Properties... button.  All it seems to do is pull up the printer properties dialog box for the selected printer.  However, the printer dialog box it pulls up is the one that comes with the installed printer.  In other words, every dialog box is different based on the selected printer.  What is the method to call to generate the specific printer's properties dialog?  I'm using VS 2005 C#.
0
Comment
Question by:fly412s
  • 2
4 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 20362774
You can get some ideas from the source code of this article:
http://www.codeproject.com/vb/net/form_library.asp
0
 

Author Comment

by:fly412s
ID: 20362822
The codeproject does not have what I'm looking for.  I have a feeling it's a very simple method call, maybe using p/invoke or the win32 library.  Basically, any installed windows printer has its own set of properties and its own dialog box to display these properties.  Some are much more elaborate than others.  There should be a simple call to display these properties.
0
 

Author Comment

by:fly412s
ID: 20371126
Has anyone looked into PrinterProperties?
0
 
LVL 29

Accepted Solution

by:
Gautham Janardhan earned 500 total points
ID: 20371778
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

773 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