Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 9th, 2007, 03:07 PM
Registered User
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default VBScript and printer preferences

I dont know if this is the right forum but here goes.

I am completely new to VBScript, and I'm trying to set some printer preferences through code. This is what I have so far, and I just cant figure out how to set the paper size.
'  Example VBScript to set the local Default Printer
'  Guy Thomas February 2004.
'  ******************************
Option Explicit
Dim objPrinter
Set objPrinter = CreateObject("WScript.Network")
objPrinter.SetDefaultPrinter "\\Printers1\SDP003"
' End of example VBScript

Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Preferences And Resource Files geomar General .NET 0 November 14th, 2006 01:35 PM
Printer ullasmathew007@yahoo.com Pro VB.NET 2002/2003 0 December 27th, 2005 02:01 AM
XML, Sessions and Application Preferences pipelineconsulting Classic ASP XML 0 September 16th, 2005 04:41 AM
Printer.Printer Problem!! Pls Help Me Chamin Access VBA 0 December 10th, 2004 07:08 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.