Results 1 to 2 of 2

Thread: Small App to List and Add Printers

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2009
    Location
    UK
    Posts
    7

    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
    Attached Images Attached Images   

  2. #2
    Frenzied Member toecutter's Avatar
    Join Date
    Apr 2006
    Location
    Brisbane, Australia
    Posts
    1,160

    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
  •  



Click Here to Expand Forum to Full Width