Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Interface/Method question (how to use the method insert_table)

lauraquinterosa
Participant
0 Likes
524

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

3 REPLIES 3
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
474

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

Read only

0 Likes
474

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

Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
474

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