Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word - PrintOut method
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00487216
Message ID:
00487556
Views:
9
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
Previous
Reply
Map
View

Click here to load this message in the networking platform