Solved

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

Posted on 2007-11-27
4
590 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now