Design report with Document Management AX 2012
Export Sales Order Data to MS Word templates with Dynamics AX 2012 ( Document Management )
Introduction:
Often, the customer asked to modify the layout of the Standard reports to meet existing templates or tastes. and as we all know that changing the layout in the SSRS reports will take long time. Instead we can use one of the Dynamics AX functionality to export the customer data to MS Word Template in simple way and short time.
The Document management functionality in Microsoft Dynamics AX give you the ability to attach files to records. For example, you can attach PDF, Microsoft Word, or Microsoft Excel files to a purchase order or a sales order. You can also create Word and Excel templates from Microsoft Dynamics AX data.
This Article will discuss how to use MS Word templates rather than customize the standard SSRS reports in Dynamics AX 2012.
In the following sections we will discuss how to export data from Microsoft Dynamics AX Sales order to MS Word templates.
This article divided into three parts.
- Prerequisites (Step by step with screenshots )
- Setup (Step by step with screenshots )
- Implementation (Step by step with screenshots )
Prerequisites:
Create Sales Order Template by following these steps:
- Open new Microsoft word document ( I use Office 2010)
- design the Sales Order layout (Add company logo, Report header,report label).To simplify the subject I will add a few labels as follow:
- Sales Order
- Customer Account
- Shipping Date
- Delivery Date
- Item Code
- Description
- Qty
- Unit Price
- Add Bookmark to each Label ( Bookmarks will be used to map the sales order fields to the Word template )
- But the courser after the sales order label
- Go to Insert TAB and click the Bookmark Button
- write the new bookmark name and click the add button
- Repeat the steps from 1 to 2 with all Labels
- Save the word file as Word Template
Setup:
- Go to Organization Administration > Setup > Document Management > Document Management Parameter
- Click the number sequence Tab > Assign number sequence to the Document file counter
- Click the File types Tab > Click Add Button > Add the Microsoft word template file type if not exist and close the screen
- Go to Organization Administration > Setup > Document types
- Click new and follow the steps in the following screenshot to add new document type
- Click the Option Button
- from the Table drop down list select the “SalesTable”
- in the template file field click the folder icon and select the Sales order template that we create before
- Go to the Field Tab
- in the data field select the “SalesId”(this field contain the Sales Order Number/Code)
- in the bookmark field write the bookmark name Which corresponds to “SalesId” in this case write “SalesOrder”
- repeat steps from 10 to 11 with all fields that you want to export and link it to the corresponds bookmark( make sure to select the “SalesLine” table in the Data Table Filed before mapping the Sales Order line filed to the corresponds Bookmark see the orange rectangle)
Implementation:
- Go to > Account Receivable >Common Sales Order > All Sales Orders
- Select any Sales Order and Click the Attachment Button
- Click the New Button and Select the SOT
- the System will start the export process
- New document will be created and the Sales Order Data will be populated automatically.
- that’s all. Cool :)
Source : http://shafeaa.blogspot.in/2014/06/export-sales-order-data-to-ms-word.html

*This post is locked for comments