A Windows Vista forum. Vista Banter

Welcome to Vista Banter.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to ask questions and reply to others posts, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Go Back   Home » Vista Banter forum » Microsoft Windows Vista » Printing, Faxing and Scanning with Vista
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Printing, Faxing and Scanning with Vista A forum for using printers, scanners and fx with Windows Vista. (microsoft.public.windows.vista.print_fax_scan)

Dynamic Connect Printer



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old June 2nd 08, 06:37 PM posted to microsoft.public.windows.vista.print_fax_scan
Madison
external usenet poster
 
Posts: 6
Default 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.

  #2 (permalink)  
Old June 3rd 08, 10:39 PM posted to microsoft.public.windows.vista.print_fax_scan
Alan Morris [MSFT]
external usenet poster
 
Posts: 1,107
Default 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 he
http://support.microsoft.com/search/?adv=1

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

"Madison" wrote in message
...
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.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:57 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.Search Engine Optimization by vBSEO 3.0.0 RC6
Copyright ©2004-2012 Vista Banter.
The comments are property of their posters.