AddPrinterConnection 
Author Message
 AddPrinterConnection

Hello,

Is there an API call (or call's) that does the
ADDPRINTERCONNECTION trick you have in Kixtart
for example ???? I need a way to add a network
printer to the user profile from a VB program.

Bye,

Paul Treffers



Tue, 30 Apr 2002 03:00:00 GMT  
 AddPrinterConnection
'Give This A Try

'Here is the Dec's
Declare Function AddPrinterConnection Lib "winspool.drv"
Alias "AddPrinterConnectionA" ( _
                ByVal pName As String) As Long
Declare Function DeletePrinterConnection Lib "winspool.drv"
Alias "DeletePrinterConnectionA" ( _
                ByVal pName As String) As Long

'Use this for connecting to a printer
x=AddPrinterConnection("\\servername\printername")
'Use This for disconnecting the printer
x=DeletePrinterConnection("\\servername\printername")

Good Luck,
             Jesse Schweyen :)



Quote:
> Hello,

> Is there an API call (or call's) that does the
> ADDPRINTERCONNECTION trick you have in Kixtart
> for example ???? I need a way to add a network
> printer to the user profile from a VB program.

> Bye,

> Paul Treffers

Sent via Deja.com http://www.deja.com/
Before you buy.


Sat, 04 May 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problem with AddPrinterConnection

2. AddPrinterConnection in Win2000 Server

3. WSH 2.0 and the AddPrinterConnection ?

4. addprinterconnection

5. DeletePrinterConnection, AddPrinterConnection

6. API AddPrinterConnection

7. Getting AddPrinterConnection Error

8. AddPrinterConnection fails: 1797: Unknown printer driver

9. Getting AddPrinterConnection Error

 

 
Powered by phpBB® Forum Software