• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 604
  • Last Modified:

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

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
fly412s
Asked:
fly412s
  • 2
1 Solution
 
Jaime OlivaresSoftware ArchitectCommented:
You can get some ideas from the source code of this article:
http://www.codeproject.com/vb/net/form_library.asp
0
 
fly412sAuthor Commented:
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
 
fly412sAuthor Commented:
Has anyone looked into PrinterProperties?
0
 
Gautham JanardhanCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now