Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Creating a Print file Dialog box

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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Loops Section Overview

971 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