Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Printing
Message
 
To
27/02/2009 10:52:42
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Miscellaneous
Thread ID:
01384528
Message ID:
01384606
Views:
37
>Hi Yuri,
>
>Thanks for your help.
>
>The trouble in using ActivePrinter property is that it sets the default printer of the machine to the new printer name passed.
>
>Also for some reason my word object is throwing error when I use
>
> oWord.WordBasic.FilePrintSetup(Printer="Non default printer", DoNotSetAsSysDefault=.T.)
>
>Is it possible because I am using Word 2003?

In VFP you need to follow the method definition, not VBA syntax (that allows to work with options in any order).

Should be:

o.WORDBASIC.FILEPRINTSETUP("Non default printer", 0,0,1)
Previous
Reply
Map
View

Click here to load this message in the networking platform