Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DoVerb()
Message
 
To
20/08/2003 08:03:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00821077
Message ID:
00824349
Views:
22
Does Anyone know how to programatically open a word doc embedded in a general field using the following typical word operations. These work OK if I have a doc called MyDoc.doc. But how do I do this with a general field?

* ... oWord is initialized elsewhere ...
If VarType(oWord) != "O" .or. oWord.name != "Microsoft Word"
oWord = CreateObject("Word.Application")
EndIf
oWord.Documents.Open( "MyDoc.doc" )
oWord.PrintOut()
oWord.Documents.Close()
oWord.visible = .f.
oWord.Quit()
Ron Seidl
Independent Developer
VFP

"I'm playing in life's theater in anticipation of a great cast party!"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform