Versions des environnements
>> 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")
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement