Creating a Print file Dialog box

Posted on 2003-11-16
Last Modified: 2006-11-17
I am trying to write my own print file dialog box. I have all the contexts it need to function but dont know how to implement them, i need to know how i can populate a form with the printers available on a certain computer.

Basically  i need to get the contents of the printers and faxes folder accessible through the control pannel.

Any ideas ANYBODY.

Quite hard sorry for lack of points any help would be great

Question by:WVW
  • 3
  • 3
LVL 20

Expert Comment

ID: 9762235

Author Comment

ID: 9762602
How could i populate a dropdown menu with that have you any idea
LVL 20

Accepted Solution

TheAvenger earned 170 total points
ID: 9762618
foreach (string printer in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
      comboBox.Items.Add (printer);
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center


Author Comment

ID: 9762643
Thats absolutely brilliant, do you know any other stuff, say how the status icon works, e.g it says

Status = Ready

Location = Lpt1

Or anything like that, if you do that would be great

Thanks so much
LVL 20

Expert Comment

ID: 9762680
Have a look at the System.Drawing.Printing namespace:

You can fins dome stuff there, like PrintController, PrinterSettings, etc. I don't know where all the stuff resides but I think you can find a lot of things for the printer here.

Author Comment

ID: 9762707
Thanks A lot, you have been very helpful

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below.…

821 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