Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word - PrintOut method
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00487216
Message ID:
00487556
Vues:
10
Garrett:

>>>>> Your Message
loWord = CREATEOBJECT("Word.Application")
loWord.Documents.Open("c:\temp\MyDoc")
loWord.Documents("c:\temp\myDoc.doc").PrintOut()
loword.Quit(0)
I'm using Word 2002 -- I don't know if that's relevant. I do know that when I tested that code omitting the ".doc" in the PrintOut line, it failed.

>>>>> My Reply
It also works with Word 2000 (I have not tested it with Word '97).

I am trying to understand why the two statements listed in the original post are not considered equivalent by VFP (one raises an Error 10, the other works fine). I will conduct some further research late next week.

Also, to use a named index, you must supply (at a minimum) the file stem and extension. Path information is optional, but AFAIK if supplied, it must be completly specified.


Daniel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform