Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

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

Vista - Dynamic Connect Printer

Reply
 
Old 06-02-2008   #1 (permalink)
Madison


 
 

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.


My System SpecsSystem Spec
Old 06-03-2008   #2 (permalink)
Alan Morris [MSFT]


 
 

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.
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Dynamic Connect Printer Vista networking & sharing
The printer name is invalid - Connect to internet printer Vista print fax & scan
Connect to printer Vista account administration
can not connect to a network printer brother laser printer Vista networking & sharing
Printer cannot connect to printer at windows 95 workstation. Vista print fax & scan


Vista Forums 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 Ltd

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