[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 601
  • 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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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