Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista print fax & scan

Dynamic Connect Printer

Closed Thread
 
Thread Tools Display Modes
Old 06-02-2008   #1 (permalink)
Madison
Guest


 

Dynamic Connect Printer

Hi There,

I wrote the program in VB6 to connect and remove printer when it needs. It
works fine with XP window but when we moved to Vista window that codes are
not working any more. Anybody has the way to get it works with Vista window.
Here is my coding for connecting printer

CardPrinter = "\\myserver\RM_color"
Set wshNetwork = CreateObject("Wscript.Network")
wshNetwork.AddWindowsPrinterConnection CardPrinter, "HP Color LaserJet 4500"
wshNetwork.SetDefaultPrinter CardPrinter

Set wshNetwork = Nothing

Please any advise.

Old 06-03-2008   #2 (permalink)
Alan Morris [MSFT]
Guest


 

Re: Dynamic Connect Printer

You will probably need to change the default Point and Print policy on the
client

Point and Print Security on Windows Vista

http://www.microsoft.com/whdc/device...staPnPSec.mspx




--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/search/?adv=1

This posting is provided "AS IS" with no warranties, and confers no rights.

"Madison" <Madison@xxxxxx> wrote in message
news:75BEC0F6-0C8E-4766-95E6-730706B794F6@xxxxxx
Quote:

> Hi There,
>
> I wrote the program in VB6 to connect and remove printer when it needs. It
> works fine with XP window but when we moved to Vista window that codes are
> not working any more. Anybody has the way to get it works with Vista
> window.
> Here is my coding for connecting printer
>
> CardPrinter = "\\myserver\RM_color"
> Set wshNetwork = CreateObject("Wscript.Network")
> wshNetwork.AddWindowsPrinterConnection CardPrinter, "HP Color LaserJet
> 4500"
> wshNetwork.SetDefaultPrinter CardPrinter
>
> Set wshNetwork = Nothing
>
> Please any advise.
>

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Connect Printer Madison Vista networking & sharing 0 05-30-2008 08:13 AM
The printer name is invalid - Connect to internet printer danicubos Vista print fax & scan 3 01-30-2008 09:20 AM
can not connect to a network printer brother laser printer evanbee Vista networking & sharing 1 10-16-2007 04:44 AM
Connect to XP printer PMK Vista networking & sharing 1 06-01-2007 10:39 AM
Printer cannot connect to printer at windows 95 workstation. DT Vista print fax & scan 4 10-12-2006 01:03 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50