Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

WordBasic/VB4  ->FilePrintSetup Problem

Posted on 1997-03-24
1
Medium Priority
?
531 Views
Last Modified: 2012-08-14
I have the following...
Dim wordobj as Object
Set wordobj as CreateObject("Word.Basic")
wordobj.FileOpen "filename"
wordobj.FilePrintSetup Printer:="PS1"

No matter if I have a local printer or a network
printer, I get an error saying there is a printer
error?!?!

I am using Windows95, VB4, MicrosoftWord v7.0
Am help would be appreciated.
0
Comment
Question by:billhunt
1 Comment
 
LVL 2

Accepted Solution

by:
dirkmartin earned 100 total points
ID: 1424673
I tried this on my machine, and I too get the printer error, unless I use my correct printer name.  Then all goes well.  It must not be PS1.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question