473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

CONNECTING PRINTER FROM VB.NET 2005

Hi!

What is the easiest way to connect (a network printer) and set a default
printer from a VB.NET 2005 application?

Regards

Morten Fagermoen

Oct 28 '06 #1
2 1959
You could do it with WMI:
http://boycot.no-ip.com/vb/WMIAddPrinter.vb.html

Or you could do it using PrintUI.dll
http://boycot.no-ip.com/vb/AddPrinterPrintUIDll.vb.html
"Morten Fagermoen" <mo****@fagermoen.comwrote in message
news:eM****************@TK2MSFTNGP05.phx.gbl...
Hi!

What is the easiest way to connect (a network printer) and set a default
printer from a VB.NET 2005 application?

Regards

Morten Fagermoen

Oct 28 '06 #2
Thank you for your help!!

Morten
"Terry Olsen" <to******@hotmail.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
You could do it with WMI:
http://boycot.no-ip.com/vb/WMIAddPrinter.vb.html

Or you could do it using PrintUI.dll
http://boycot.no-ip.com/vb/AddPrinterPrintUIDll.vb.html
"Morten Fagermoen" <mo****@fagermoen.comwrote in message
news:eM****************@TK2MSFTNGP05.phx.gbl...
>Hi!

What is the easiest way to connect (a network printer) and set a default
printer from a VB.NET 2005 application?

Regards

Morten Fagermoen

Oct 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
0
by: kevin | last post by:
I need to connect to a shared printer on a LAN using .net code. I can connect to the printer by using explorer; search for the computer the share is on, then by click-clicking on the shared printer...
1
by: pigge79 | last post by:
Hi there, We are thinking of developing a product that needs to be able to parse data printed via some printer driver. The data will then be used to fill a PDF form. We believe the printer...
3
by: Ann Marinas | last post by:
Hi there, I am currently developing an ASP.NET program that connects to a SQL Server 2000 database. I also have SQL Server 2005 Express installed on the same local machine. Prior to...
4
by: c_shah | last post by:
How to change and set default printer using Visual Basic 2005 The following works within my VB 2005 application but does any one have better alternative. /**** Dim wshnetwork As Object =...
0
by: Zebadunc | last post by:
I have a vb.net form that lists the shared printers in from a remote computer in a checklist box giving the shareName as the value for the user to select. I want to use the print server name and...
10
by: suvarna | last post by:
hi i am having problem in firing commands to the hp printer through vb code. i used hp printer commands in my code but when the commands are fired it gives error "failed to print the doccument"....
2
by: samadams_2006 | last post by:
Hello, I have a problem that I'm hoping someone will be able to help me resolve. 1) I have a C# Web Site in which I connect to the database: "Install Microsoft SQL Server 2005 Express...
0
by: aboutjav.com | last post by:
Hi, I need some help. I am getting this error after I complete the asp.net register control and click on the continue button. It crashed when it tries to get it calls this Profile property ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.