>> You can work with oForm.myOle1.object.Content.TEXT, and modify it as
>needed.
>
>It works for the text, but my Word OLE document is gone. When I print before adding text, my Word OLE document is printed. But after I add text, only the text is printed on the page. How can I merge both together?
In this case I would create the temporary DOC file from the general field content, then close the form, open the temporary DOC file with WOrd.Automation, modify the text, and print it.
Also, instead of working with content.text directly you probably need to do something like:
oWord.Selection.endKey(6) &&go to the document end
oWord.activedocument.content.insertafter("whatever you need")
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only