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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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);
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now


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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
abstract class C# 1 44
Updating a single record in forEach using C#/Entity 7 38
Load XML element 3 43
What!!!??? 5 59
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

739 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