O'Reilly logo

Microsoft Dynamics AX 2009 Development Cookbook by Mindaugas Pocius

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Word documents from templates

Even though Microsoft Office Word does not have standard helper classes in Dynamics AX like Excel does, Word documents can be created using very similar procedures by calling COM objects directly. A good example of how to create Word (also PowerPoint and Visio) documents from scratch is the Task Records tool, which is a part of the Dynamics AX 2009 application (for older versions of Dynamics AX, it can be installed separately). The tool can be started from the Tools menu, and it can record a list of user actions to a Word document. The main document creation code is located in the SysTaskRecorderDocStandardWord class, and it is worth looking at the class to understand how Word documents can be created.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required