Quantcast
Channel: Martin Dráb's Activities
Viewing all articles
Browse latest Browse all 17532

Create/Read/Write Word Document using Open XML

$
0
0

Hi there,

I prepare a new Word template and save it as a file .dotx. The template contains bookmark and table with a single row and two columns.

In the AOT, I create a new job and using COM, I add values to the bookmarks and by using while select, I am adding values from table to the left column. Then I generate .docx Word document that includes these values.

Instead of using COM, I would like to use openXML to create Microsoft Word document and add values to the bookmarks and by using while select, add values from table to the left column in the table raw and then, read values from my bookmarks and from the right columns and save it to the AX table.

I find some examples how to read/write data from Microsoft Excel document, but that don't help me. Also for some reason, most of the examples are in C# instead of X++.

Could you advise me or show some example how to do it using openXML and X++?

Thank you.


Viewing all articles
Browse latest Browse all 17532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>