addprinterconnection 
Author Message
 addprinterconnection

I am trying to find the syntax (and hopefully an example!) for a VB call to
AddPrinterConnection, as I need to write code that programatically connects
to printers on NT4 and Win95/98 workstations.

Thanks in advance,

Tim Gallivan



Tue, 05 Mar 2002 03:00:00 GMT  
 addprinterconnection
Take a look at the Wnet.zip L2 example on
http://matthart.com/vbhelp/vbsamp.htm

Hope it helps,

-J

Quote:

> I am trying to find the syntax (and hopefully an example!) for a VB call to
> AddPrinterConnection, as I need to write code that programatically connects
> to printers on NT4 and Win95/98 workstations.

> Thanks in advance,

> Tim Gallivan




Wed, 06 Mar 2002 03:00:00 GMT  
 addprinterconnection
why not just use a batch file like this

start \\printserver\printer

Quote:

>I am trying to find the syntax (and hopefully an example!) for a VB call to
>AddPrinterConnection, as I need to write code that programatically connects
>to printers on NT4 and Win95/98 workstations.

>Thanks in advance,

>Tim Gallivan




Wed, 06 Mar 2002 03:00:00 GMT  
 addprinterconnection
Thank you Jenni, but I already have this code and it's fine for "net using"
lpt's for legacy applications (e.g. DOS apps). However, I want to make the
printer connection for a 32-bit 95 or NT application.

Two examples are listed below, but I have no idea how to make the calls in
VB!
http://support.microsoft.com/support/kb/articles/Q152/5/51.asp
http://support.microsoft.com/support/kb/articles/Q147/2/02.ASP

Any light you could shed on this would be most illuminating!

Thanks in advance for your help,

Tim Gallivan


Quote:
> Take a look at the Wnet.zip L2 example on
> http://matthart.com/vbhelp/vbsamp.htm

> Hope it helps,

> -J


> > I am trying to find the syntax (and hopefully an example!) for a VB call
to
> > AddPrinterConnection, as I need to write code that programatically
connects
> > to printers on NT4 and Win95/98 workstations.

> > Thanks in advance,

> > Tim Gallivan




Sun, 10 Mar 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Problem with AddPrinterConnection

2. AddPrinterConnection in Win2000 Server

3. WSH 2.0 and the AddPrinterConnection ?

4. DeletePrinterConnection, AddPrinterConnection

5. API AddPrinterConnection

6. Getting AddPrinterConnection Error

7. AddPrinterConnection fails: 1797: Unknown printer driver

8. AddPrinterConnection

9. Getting AddPrinterConnection Error

 

 
Powered by phpBB® Forum Software