Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word - PrintOut method
Message
De
21/03/2001 12:28:30
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00487216
Message ID:
00487285
Vues:
9
Vlad:

Thank you for providing the extra parameters. However, my question still remains and I will rephrase it to make it clearer.

I issue the following commands in VFP6, SP3 anbd I have Word '97 and Word 2000 installed on two different machines.

loWord = CreateObject('Word.Application')

This works:
loDoc = loWord.Documents('c:\temp\MyDoc.doc')
loDoc.PrintOut(.f., .f., 0, '',,,,1)
This also works:
loDoc = loWord.Documents(1)
loDoc.PrintOut(.f., .f., 0, '',,,,1)
This does not work:
loWord.Documents('c:\temp\MyDoc.doc').PrintOut(.f., .f., 0, '',,,,1)
This also does not work:
loWord.Documents(1).PrintOut(.f., .f., 0, '',,,,1)
Why does it work if I use a refrence to a document created on a separate line (loDoc), but not if created on the same line as the PrintOut?

Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform