Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Insert data into word document using X++ code

(0) ShareShare
ReportReport
Posted on by 204

Hi ,

I have a task that is regarding  documentation in which I need to export the data into word document using X++ code .Is there a way in which I can do this,any sample code or reference will  work . Or do I need to first enter data into XML file and then to word , in that case please guide me on how I can insert XML data to word ?

  • Blue Wang Profile Picture
    Blue Wang on at
  • Martin Dráb Profile Picture
    Martin Dráb 231,307 Most Valuable Professional on at
    RE: Insert data into word document using X++ code

    Yes, Word documents support tables, although they're not comparable to Excel. If you want Excel-like functionality, the best way is using Excel itself. Note that you can use DIXF to export AX data to Excel.

    It's also possible to embed an Excel sheet inside a Word document, but I've never tried it from code.

  • Nishi Gupta Profile Picture
    Nishi Gupta 204 on at
    RE: Insert data into word document using X++ code

    Thanks Martin for quick reply .

    Can we add a table( like an excel table ) in the word doc for entering data ?

  • Martin Dráb Profile Picture
    Martin Dráb 231,307 Most Valuable Professional on at
    RE: Insert data into word document using X++ code

    Look at Creating word documents from X++, for instance.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans