473,320 Members | 1,978 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,320 software developers and data experts.

Printer Install

Jm
Hi all

Is there an easy way to install a network printer by code in Vb.Net (Meaning
connecting to a printer from a server for eg \\MyServer\MyPrinter, so no
drivers are required or anything like that). In vb6 i used Wsh to install
it, should i continue using the same method or does .NET have a better way
of doing it ?

Thanks
Nov 21 '05 #1
1 2837
Untested....

Shell("rundll32 printui.dll,PrintUIEntry /y /if /b ""HP LaserJet 4000""
/f
D:\Install\Drivers\HP4000\WinXP\hp222ip6.inf /r ""\\SSMD\" & pq &
".Printers.Amsterdam.NL.SSMD"" /m ""HP LaserJet 4000 Series PCL 6""")

"Jm" <ja*****@ihug.com.au> wrote in message news:ja*****@ihug.com.au:
Hi all

Is there an easy way to install a network printer by code in Vb.Net
(Meaning
connecting to a printer from a server for eg \\MyServer\MyPrinter, so no
drivers are required or anything like that). In vb6 i used Wsh to
install
it, should i continue using the same method or does .NET have a better
way
of doing it ?

Thanks


Nov 21 '05 #2

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

Similar topics

2
by: Yong Pong | last post by:
I have some functionality that I am trying to implement and I cannot figure it out. What I am trying to do is make it so that a user goes to a web page, sees a printer, clicks on a hyperlink, and...
0
by: Dave | last post by:
If a user navigates to the printers on a domain controller, they can double click on the Printer Icon and it will install the printer on their machine. That's great as long as the user knows what...
1
by: D | last post by:
I would like to create a script for Windows 2000 that will create a Standard TCP/IP printer port and install a printer (I have the applicable printer drivers needed for the install on a network...
2
by: Terry Olsen | last post by:
Can anyone give me some guidance on installing a local printer with VB 2005? I'm guessing I would probably do this with WMI, but i'm not finding anything obvious. I see how to add a networked...
2
by: =?Utf-8?B?Qm9vazIwNDc=?= | last post by:
I am stumped. I lost my printer about a week ago and cannot reinstall it. When I try it tells me that the specified print monitor cannot be found. I have a Dell computer with Windows XP and a...
3
by: Steve | last post by:
Hi All I have a Windows forms POS program and have windows xp printer drivers for the Posiflex printers the customers use Is it possible to automatically install a windows printer driver (and...
0
by: kk6383 | last post by:
Hi, I encounter a problem: When I use FAXCOMEXLib.dll (Fax COM API) in C# encounter a problem: System.Runtime.InteropServices.COMException (0x8007000D): Operation failed.
1
by: ekynox | last post by:
Hi guys, have been playing with WMI to add a network printer connection to a Windows XP pc. My environment consists of a server running Windows Server 2003 and Visual Studio 2005 and a test pc...
0
by: =?Utf-8?B?RGVs?= | last post by:
Hello I need help I have a 1998 hp and have installed windows xp I can't seem to install a printer driver to make my computer communicate with my old hp 722c printer..I've installed the ones from...
2
by: wassimdaccache | last post by:
Dear all I am using windows server 2003 sp1. I am connecting a printer called BIRCH prp080 to my pc using the serial port. the printer is working well when I install the driver but the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.