?
Solved

Creating a Print file Dialog box

Posted on 2003-11-16
6
Medium Priority
?
511 Views
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

0
Comment
Question by:WVW
[X]
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
6 Comments
 
LVL 20

Expert Comment

by:TheAvenger
ID: 9762235
0
 

Author Comment

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

Accepted Solution

by:
TheAvenger earned 680 total points
ID: 9762618
foreach (string printer in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
      comboBox.Items.Add (printer);
0
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!

 

Author Comment

by:WVW
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
0
 
LVL 20

Expert Comment

by:TheAvenger
ID: 9762680
Have a look at the System.Drawing.Printing namespace:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdrawingprinting.asp

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.
0
 

Author Comment

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

Featured Post

Technology Partners: 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

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…
In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses
Course of the Month11 days, 17 hours left to enroll

752 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