Solved

Creating a Print file Dialog box

Posted on 2003-11-16
6
467 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
Comment Utility
0
 

Author Comment

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

Accepted Solution

by:
TheAvenger earned 170 total points
Comment Utility
foreach (string printer in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
      comboBox.Items.Add (printer);
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:WVW
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks A lot, you have been very helpful
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
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…
This video discusses moving either the default database or any database to a new volume.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

763 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now