Feedback
 
Did this article resolve your question/issue?

   

Your feedback is appreciated.

Please tell us how we can make this article more useful. Please provide us a way to contact you, should we need clarification on the feedback provided or if you need further assistance.

Characters Remaining: 1025

 


Article

ACTIVEX - How to insert data into a MS Word document

« Go Back

Information

 
Article Number000019809
EnvironmentOpenEdge 10.x
Progress 9.x
Windows
Question/Problem Description
ACTIVEX - How to insert data into a MS Word document
Example of writing records into MS Word
Steps to Reproduce
Clarifying Information
Error Message
Defect/Enhancement Number
Cause
Resolution
DEFINE VARIABLE chWordApplication AS COM-HANDLE NO-UNDO.

CREATE "Word.application" chWordApplication.

chWordApplication:VISIBLE=TRUE.
chWordApplication:Documents:ADD().

FOR EACH customer WHERE custnum < 10.
  chWordApplication:Selection:typetext(customer.NAME).
  chWordApplication:Selecyion:typetext("   ").
  chWordApplication:Selection:typetext(customer.custnum).
  chWordApplication:selection:TypeParagraph.
END.

chWordApplication:Quit().

RELEASE OBJECT chWordApplication.
Workaround
Notes
References to Written Documentation:

Progress Solutions:
P4698, "Tips for using Excel and Word via ActiveX Automation"
Attachment 
Last Modified Date9/13/2015 3:04 PM