Get A List Of Printers?

Nov 28, 2009

When you go to the Start button and then "Printers and Faxes" and you see a list of the printer objects defined on that PC. In my App VB.Net app I want to be ale to use a drop down box to display this list of printers and allow the user to select one of them.So, Not necessarily a list of printers on the Intranet that the user is connected to, only on their personal PC.

View 1 Replies


ADVERTISEMENT

VS 2008 Small App To List And Add Printers?

Oct 9, 2009

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.

View 1 Replies

Vbscript - Remove Old Printers - Add New Printers

Sep 23, 2009

Trying to write a Vbscript. Actually, I'm trying to modify an existing script that I found on the internet. I basically need the script to run on workstations, delete printers from our old print server (master), and install the corresponding printer from our new print server (dc01). I should also mention that the printer names have changes slightly. So far, the script does a great job of deleting printers from Master, but none of the corresponding dc01 printers are installed.

Here's the code:

CODE:

View 1 Replies

Communicating With Printers?

Feb 3, 2009

is there a way through vb visual express 08 to ask a printer if it has toner or paper? im not to sure on how to communicate with printers in this way if it is at all possible.i am writing a program to display the status of the printer and this is key.

View 1 Replies

Add And Remove Networked Printers?

Aug 27, 2011

How can i create a program using vb.net to add and remove networked printers?

View 2 Replies

Set The Printers Paper Orientation Using VB?

Jun 11, 2011

how to set the printers paper orientation using vb dot net

View 17 Replies

Set The Printers Paper Orientation?

Mar 10, 2009

how to set the printers paper orientation using vb dot net

View 1 Replies

Adding Printers Port Programmatically

Feb 2, 2009

I have been attempting to do this in so many ways. I have tried using rundll32 printui.dll, PrintUIEntry and for some reason it stops working on vista. I have no clue why. It wont even try to work with HP printers using the inf file. What is the best way to add a LPR port printer programmatically? I can create the LPR port with NO issue what so ever.

View 3 Replies

Can't Print Multiple Pages On More Than 1 Printers

Mar 15, 2010

I have a routine, with the printDoc_PrintPage() function where i loop my pages and print them on the default printer.

What i need to do is print page 1 on a special printer and the other pages on the default printer.

View 1 Replies

Control The Printers Paper Source?

Jul 29, 2010

How can i control the printers paper source?

Im printing a document but i want the user to only be able to print from the Manual feed tray on a HP 2055dn printer.

i currently have ths code in place but is anyone able to tell me if it would work or not.

i was using a print dialogue box but changed my mind as i just want to print the document as soon as the button is pressed.

' Allow the user to choose the page range he or she would
' like to print.
PrintDialog1.AllowSomePages = True

[Code].....

View 16 Replies

Creating Application With Multiple Printers?

Aug 15, 2011

I have multiple forms and reports with different print area. Some are designed to print to a thermal label printer and others to department shared printers. Currently the user is able to change the printer in print dialog box and print to differernt printers. I want to be able to create a form where the user can assign different printers for different jobs and not have to worry about it.

The problem is, i have never worked with printing function and my collegues arent too smart so I was wondering if someone can throw me ideas on where to start so i can start googling for it.

View 1 Replies

Detect Physical/Virtual Printers?

Jul 16, 2009

way to detect Detect physical/Virtual Printers in VB.Net?

View 1 Replies

GET Installed Printers In Local Machine?

Mar 6, 2012

why this code doesn't work?

Dim s As String
For Each s In PrintDocument1.PrinterSettings.InstalledPrinters.ToString
MsgBox(s)
Next

View 6 Replies

Print To Text Only Printers From Program?

May 15, 2012

I have what is basically a text only printer (a Zebra 105SL) connected to my network at a static IP address. I have downloaded Zebra's Text only driver for it and set up a print queue named "Zebra North Text". I can print to that queue from Notepad just fine.

However, I am trying to print from a VB 2005 (soon to be upgraded to VB 2010 or VB 11) application. All of the standard VB sample printing code assumes I need to render the text in Fonts, etc, which just confuses the Text Driver.[code]...

View 6 Replies

Printers Name In Password Protected Server

Sep 9, 2009

I need to check all the printers of my faculty by sending a test page to everyone of them. And I want to do that with a little program in VB... All the printers are in the same server. I've found this piece of code : It should get the names and put them in a list box (the following code) and them send the print request

[Code]...

View 15 Replies

VS 2010 Detecting Printers On Remote Pc?

Mar 16, 2012

I need to list printers on a remote pc and am gettings errors trying to use wmi code but I am open to another way of doing this,

Private Sub DetectPrntrs()
Dim strComputer As String
Dim colPrinters As String

[code]....

I get the error:'Name' is not a member of 'Char'.

View 5 Replies

VS 2010 Listing ALL Remote Printers

May 14, 2012

I have this working but only shows printers for the current user I think, I need to see a list of all printers installed on a remote pc for all users.I think I need to use the reg keys but all samples I fnd want only for one user and seem to be vbscript not VB code..[code]

View 2 Replies

Displaying The Printers Custom Properties Dialog

Sep 19, 2010

How do I get at and invoke the properties dialog supplied by the manufactured? I have search this many times and found that most of the posts contain solutions that the original poster claims don't work The standard PrintProperties class does not handle a lot of printers who have specifictsks, eg a printer designed to pint on the face odf CD/DVD. I have found examples of how do this in VB6, but every examply I find for the versions of VB Basic after thet have comments that the solution provided did not persist the user chnges. Bow, come on, there has to be a way of displaying and persisting the user choises the dialog bog provided by the printer manufacturer!Terry

View 3 Replies

Local And Network Printers For ALL Users On A Remote Pc?

May 30, 2012

I have this partially working but only shows printers for one user, need all local and network printers mapped for ALL users on a remote pc so I can migrate them, I know I need to do some sort of for each method but not sure what will work

[Code]...

View 1 Replies

PrintDocument Object - Get Paper Sizes For All Printers

Aug 4, 2011

I want to Return a List of all the PaperSizes with Included Dimensions. When I open my form it displays the Current Default Printers PaperSizes. I need to set the PrintDocument Object to another Printer... How might I go about changing my PrintDocument Object to the next printer installed on my computer? So I can then get it's Papersize info.
Private PrintDoc As New PrintDocument

View 1 Replies

VB 2008 Search Network For Printers IP Addresses

Jun 12, 2011

i am trying to find a code that will do a search and find the ip address of any printer on the network with a ip address?

View 1 Replies

VS 2008 WMI Query IP Range - Skip Printers?

Aug 31, 2009

i have an app that pings all IP's on my network and then adds all alive hosts to a list, then my WMI query runs for all of them ips and gets some information. it all works fine except for when it gets to printers and switches/routers which obviously dont support WMI. Is there some way i can check if a device supports WMI and skip the query if it does not?

View 2 Replies

Accessing Printers And Faxes Folder On A Network Machine In Asp.net

Oct 8, 2009

From my vb.net code I am trying to set a printer name for the crystal reports printing

rpt.PrintOptions.PrinterName="johnKingHP LaserJet 2200 Series PCL"

But when I go to windows-->Start--> Run and enter JohnKing

It is showing me Printers and Faxes folder and Scheduled task folder. But when I open Printers and Faxes it will show the adderess as Printers and Faxes on JohnKing.

From my web application I want to sent the Printer name is the name shown above.

View 1 Replies

Specifying Extra Data For Non-printer Printers (e.g. Filename For PDF, Phone Number For Fax)

Dec 22, 2010

Some printers aren't actually printers e.g. CutePDF, PDF995 etc are printer drivers that "print" PDF files, and the built in fax support for Windows is through a printer driver that "prints" to the fax modem.

Both PDF and fax need a little bit more information than a normal print job - PDF needs a filename, Fax needs a phone number. Usually there is a pop-up dialog that prompts the user for the extra information.

Is there any way to set this information programmatically?

There is a property Printing.PrintDocument.PrinterSettings.PrintFileName but this only seems to work when Printing.PrintDocument.PrinterSettings.PrintToFile is set to TRUE, which is not the case in these situations (even though a PDF printer writes a file, it is not "save print job to file" in the normal sense).

View 1 Replies

Visual Basic 2008 Search Network For Printers IP Addresses?

Jan 12, 2011

i am trying to find a code that will do a search and find the ip address of any printer on the network with a ip address?

View 5 Replies

Excel 2003: Printers Use Wrong Settings After BeforePrint Event Is Cancelled?

Jun 21, 2010

I am using Excel 2003 (under XP) to print to several printers, with several different kinds and sizes of stock. My workbooks consist of two sheets: "Data" and "Print." "Data" should never be printed. "Print" is laid out with the proper spacing for a particular stock, and should not be sent to the wrong printer.

I want to use a BeforePrint event to check that the active printer is correct and that "Print" is the active sheet. If either of these tests fail, I want to cancel the print event and replace it with a new one.

Here is the problem I am experiencing: Upon opening Excel, all printers function normally. The first time a BeforePrint event is cancelled, Excel gloms onto the active printer and subsequently tries to use its driver for all other printers. In the Print dialog, every printer selected will show the model of the cancelled printer next to "Type" and its location next to "Where," and the Properties button will bring up the preference menu for the cancelled printer. It is still possible to print to the other printers,
but the settings for the cancelled printer will be used, even if they are incompatible. This persists until Excel is closed and reopened.

BeforePrint events that do not cancel do not result in this problem. Events that do nothing BUT cancel, on the other hand, do.

View 1 Replies

Change The Printers Setting To Use The Manual Feed Tray Instead Of The Auto Feed

Oct 14, 2010

i have found some info on this but nothing i can use... im using vb.net to automate excel before i print the excel worksheet i need to change the printers setting to use the manual feed tray instead of the auto feed

View 2 Replies

Create A Toggle Button That Switches A List To A Range And Then Back To A List If Needed?

May 14, 2009

II am trying to create a toggle button that switches a list to a range and then back to a list if needed. I am able to get it to do both but when I add an item to the list, convert to a range and then convert back to a list it leaves off the last items I entered.I tried to work in a code to select all cells but I must not be putting it in the right place.This is what I have so far:

ActiveSheet.ListObjects.Add(xlSrcRange, Range("$A$3:$AE$7"), , xlYes).Name = _
"List1"

I realize the problem is the $AE$7 (the $A$3 is correct)

View 1 Replies

DB/Reporting :: ODBC To SQL Server 8 Shows List Of Procedures But Not List Of Tables Or Views?

Oct 27, 2009

In VS 2008, VB.Net, I am successful connecting to a local SQL Server (version 8) and seeing all tables/views/procedures in Server Explorer. The local OS is Win XP Pro SP3. I created an ODBC data source to a remote SQL server (also version 8) with a database of the same structure as the local one. The connection tests out ok. The remote computer runs Windows Server 2000 SP4. In the VS 2008 Server Explorer I add this ODBC source. When I click on the plus-signs to expand items, neither the tables nor the views show anything, whereas the full list of procedures appears. Is it the old SQL Server version? Is it the old Server OS version? Something else alltogether?

View 2 Replies

VS 2008 Student List Views - List Boxes And Data Fro Access DB Tables

Dec 30, 2010

This is what I'm sure will be the first of many noob-ish questions from yours truly... I'm studying as a mature student for a Computing Degree (encompassing web design, hardware, programming and systems analysis). The programming seems to be my weak spot this year. I enjoyed C++ last year, doing basic console applications, but progamming visually with VB in Visual Studio 2008 I'm struggling!

[Code].....

View 12 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved