Information générale
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
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)
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement