Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing a Word Document
Message
From
17/11/2000 19:44:28
 
 
To
17/11/2000 15:52:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00443225
Message ID:
00443326
Views:
12
>>>>>>>>>>>>>>>>>>>>>>>
oDoc = oWord.Document.Add() resulted in a "Member DOCUMENT does not evaluate to an object" error. Am I supposed to supply some kind of parameter to it??? I tried a sring with the name of the file to print but got the same message.
>>>>>>>>>>>>>>>>>>>>>>>

oDoc = oWord.Document.Add() should'v been Documents.Add()
as Garrett corrcetly said.

>>>>>>>>>>>>>>>>>>>>>>>
>Assume that I want to print "Mydoc.doc" how would I do that.
>>>>>>>>>>>>>>>>>>>>>>>

oWord.Documents.Open("c:\files\Mydoc.doc") && add a fullpath

>>>>>>>>>>>>>>>>>>>>>>
Finally, so I don't have to keep bothering you and the other respondents, is there any documentation on the methods and properties of oWord.Application??? >>>>>>>>>>>>>>>>>>>>>>
MSDN has it.

I recommend you get "Microsoft Office Automation with Visual FoxPro" by Granor & Martin, Hentzenwerke Publishing (www.hentzenwerke.com)


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform