‎2005 Mar 04 9:50 PM
Hi people!
I'm working with DOI (desktop office integration).
So far I've been able to reflect flat variables from my ABAP program into a Word Doc, but when it comes to internal tables I'm not sure how to achieve this.....
I find out in the interface i_oi_word_processor_document the method insert_table, but I can't find a single simple example on how to use it....
If no one knows how to use this method, does anyone know how to reflect an internal table fron my program into a Word Doc by another mean?
Thanks in advance!!!
Regards,
Laura
‎2005 Mar 04 9:54 PM
Hi Laura
If you want you can use direct OLE calls. For this, you can refer to the tutorial <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c1d54348-0601-0010-3e98-bd2a2dcd9e6c">"An Easy Reference For OLE Automation"</a> published at SDN.
Kind Regards
*--Serdar
ssimsekler@yahoo.com
‎2005 Mar 07 3:41 PM
Hi Serdar,
Thanks for the info. I saw this tutorial, and copy&paste it but couldn't make works, it only prints the first line of text.
And in case it works, can I work with a Word template? (witch is my case working with DOI) or this method only works for crating the word doc on the fly as in the example?
Thanks in advance.
Regards
Laura
‎2005 Mar 08 7:57 PM
Hi Laura
You can call the 'Open' OLE method to open a preexisting document which may be used as a template. However, it will be difficult to position the cursor at the required place. Or write the code so that it generates the whole document every time you execute the functionality.
*--Serdar
ssimsekler@yahoo.com