web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Export data to Word document by X++

(0) ShareShare
ReportReport
Posted on by 1,254

Hi,

I'm getting below error when I export my data to word document and its working fine in AX 2012 but the problem in D365.

please help to solve this.

Thanks in Advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: D365 - Export data to Word document by X++

    Dynamics 365 for Operations is running server-side only, so it is looking for a Word application on your AX AOS instance, which is obviously not there, so your AX 2012 examples would not work, which uses a client executable and local Office deployment.

    Refer to the documentation for Office integration in D365fO:

    docs.microsoft.com/.../office-integration-tutorial

  • Kanagaraj A Profile Picture
    1,254 on at
    RE: D365 - Export data to Word document by X++

    Thank you Vilmos,

    I will install word application in D365 AX AOS Instance and try it.

  • Vilmos Kintera Profile Picture
    46,149 on at
    RE: Export data to Word document by X++

    That is likely not going to work. Read the documentation first, and understand the information described in there.

  • Kanagaraj A Profile Picture
    1,254 on at
    RE: Export data to Word document by X++

    Hi,

    I can able to export form data to word or excel by using Open Office Integration option from D365

    but I'm facing problem with my custom data export to word by X++ coding.

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: Export data to Word document by X++

    Again, interacting from the browser with locally deployed components is unsupported, it is not like previous versions.

  • Vilmos Kintera Profile Picture
    46,149 on at
    RE: Export data to Word document by X++

    Can you please make sure you tick the checkboxes for helpful answers next to each post, so the topic gets resolved? Thank you.

  • Suggested answer
    Kanagaraj A Profile Picture
    1,254 on at
    RE: Export data to Word document by X++

    Sorry, still I'm facing an issue to sign-in Microsoft Dynamics Add-Ins.

  • Kanagaraj A Profile Picture
    1,254 on at
    Word Integration by X++

    Hello,

    I would like to know, how to export data to word document by X++ coding in D365(AX7) like in AX 2012.

    I tried it with below code on both D365(AX 7) and AX 2012 version.

    4812.Untitled.png

    Code is working fine on AX 2012 but on D365(AX 7) I’m getting below error,

     4812.Untitled.png

                    In our server, we have latest version of MS Office which is activated.

    Please help me, is it possible to get its result without Microsoft Dynamics Add-Ins and Data Entity.

    Thanks in Advance!!!

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: AX D365 - Word Integration by X++

    This is the same topic of what you already had here:

    community.dynamics.com/.../238441

    Asking the same multiple times will most likely not lead to a different answer.

    You cannot interact from a code running server-side (D365 for Operations) with an application running client side via a browser (Word on local computer), since this is now a completely different architecture compared to AX 2012.

    Also you will most likely not be able to interface with COM on server-side, because that is supposed to be a client-tier call, while AX is running now in a web process.

  • Kanagaraj A Profile Picture
    1,254 on at
    RE: Word Integration by X++

    Hi,

    Thank you,

    From my last post, I learned the ways we can export data to word or excel.

    Now, I would like to know is it possible to get data to word from Code?

    And, I got the answer because of server side.

    Thanks for your time to clarify my doubts.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
NNaumenko Profile Picture

NNaumenko 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans