Solved

Creating a Print file Dialog box

Posted on 2003-11-16
6
490 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 170 total points
ID: 9762618
foreach (string printer in System.Drawing.Printing.PrinterSettings.InstalledPrinters)
      comboBox.Items.Add (printer);
0
ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn on intranet settings 1 57
Run time Error 4 48
C#.NET and microsoft certification. 3 40
Can I command line build a C# application? 6 33
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…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

777 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