Microsoft Office Word allows presenting Dynamics AX data in a variety of formats.Using Word templates makes things even more easier. The newly introduced Microsoft Office add-ins also provide a user friendly way to do this.
If add-ins have not been installed, Dynamics AX still allows you to create Word documents from the code. Although there are no Dynamics AX application classes for Word as we have for Excel, Word documents can still be created using a very similar approach by calling the COM
components directly. The only inconvenience is that IntelliSense in the code editor will not provide method suggestions. However, the methods and their parameters can be easily looked up in the online MSDN library.
In this recipe, we will create a simple Word document from a template. We will use the COM
component model to read a Word template and fill it in with data from the system.