|
-
Oct 9th, 2009, 11:15 AM
#1
Thread Starter
New Member
Small App to List and Add Printers
Hi,
Am looking at making a small application that will list printers on two file servers at two separate sites, from this app they can add the printer/s to there local computer.
I have found a small application on the web but there are a few improvements it could do with.
They are;
Show all local printers without having to click on a check box.
Show sites printers without having to click on a check box.
Show comments about the printer’s location other then just the site.
If it is possible I would like to update this one, but if there are any other examples where I could download something similar, or even some help with how to begin to create a new application.
Here are some screen shots, of the application form and the xml which holds the folder structure for the sites.
Thanks
-
Oct 9th, 2009, 05:27 PM
#2
Frenzied Member
Re: Small App to List and Add Printers
Start a new project, add a listbox and place this code in the forms load event.
Code:
' Visual Basic 2005
Dim i As Integer
Dim pkInstalledPrinters As String
For i = 0 To System.Drawing.Printing.PrinterSettings. _
InstalledPrinters.Count - 1
pkInstalledPrinters = System.Drawing.Printing.PrinterSettings. _
InstalledPrinters.Item(i)
ListBox1.Items.Add(pkInstalledPrinters)
Next
That code from the help files will loop through all the installed local printers and add them to a listbox
Somewhere to start, GL
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|