Kbase P12373: How to call the MS Word "Save As" method from Progress
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/26/2004 |
|
Status: Verified
GOAL:
How to call the MS Word "Save As" method from Progress
GOAL:
How to save a MS Word document from Progress using ActiveX automation
FIX:
DEFINE VARIABLE oWord AS COM-HANDLE NO-UNDO.
CREATE "Word.Application" oWord.
oWord:Documents:Open("C:\test1.doc").
oWord:Visible = TRUE.
oWord:ActiveDocument:SaveAs("c:\test2.doc").
oWord:Documents:close().
NO-RETURN-VALUE oWord:Quit ().
RELEASE OBJECT oWord.