Kbase 18749: ACTIVEX - How To Open A Document In Word
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/03/2011 |
|
Status: Verified
GOAL:
ACTIVEX - How To Open A Document In Word
GOAL:
How to instantiate an instance of Microsoft Word and then load a document into it.
FACT(s) (Environment):
Progress 8.x
Progress 9.x
OpenEdge 10.x
Windows
FIX:
DEFINE VARIABLE oWord AS COM-HANDLE NO-UNDO.
CREATE "Word.Application" oWord.
oWord:Documents:Open("C:\test.doc"). /* Change to existing document */
oWord:Visible = True.
PAUSE. /* Allow you to actually see the document before we kill it */
oWord:QUIT.
RELEASE OBJECT oWord.