Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Printing
Message
 
À
27/02/2009 10:52:42
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MySQL
Application:
Desktop
Divers
Thread ID:
01384528
Message ID:
01384606
Vues:
36
>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
Fil
Voir

Click here to load this message in the networking platform