General information
Category:
COM/DCOM and OLE Automation
Environment versions
Network:
Windows 2003 Server
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only