Keeping Word Templates in synch with Report Writer

Dave Dusek - Click for blog homepageThis is a reposting of an article Dave Dusek originally wrote on my Developing for Dynamics GP blog.

If you are working with a specific report in report writer, and you are also using a word template to print the report, one thing that you have to keep in mind is that the report writer fields have to be in synch with the content controls on the word template.  If they are not in synch what happens is that nothing will print in the content control on the word template, not even XX’s.  So you need to go through a process to get the report writer report synched up with the word template.  Here is that process.

  1. Run the report writer report to XML data.  You do this by just printing the report, in the report destination, choose standard report, then choose file.  Select XML for the output type.
  2. Go to Reports>Template Maintenance and select your report.  Highlight the template you are using and click Modify.
  3. In Word, click the developer tab.  Click the Field List.  Select the XML resource.  Click Remove Source.
  4. Click Add source and select the new xml report in step 1.
  5. Then remove content control and delete the field on the word template.
  6. Drag the field out onto the report from the proper section.
  7. Save the template.
  8. Back in Reports>Template Maintenance, highlight the template and click the Green plus to import the template saved in step 7.

You always want to follow these steps to make sure your report writer report is synched up with the word template if you are seeing any weirdness with fields not printing.


This article was originally posted on the Developing for Dynamics GP Blog and has been reposted on

19 thoughts on “Keeping Word Templates in synch with Report Writer

  1. You lost me on step 3.  I figured out how to add the Developer tab, but cannot find the Field List. How do I do that?
    Thanks for your help.


  2. Once you click on the developer tab, you will see a small group of GP buttons in the upper right hand corner.  They are field list, add source and remove source.  If you don't see them, then you either don't have the Microsoft Dynamics Add in for Microsoft Word loaded, or it's loaded but not active.  


  3. Hi Dave, it sounds like you have alot of knowledge on these blasted word template reports.  I have not successfully managed to-date to get them printing correctly with all the details I need.  At present I have a client where I have modified the PO Blank Form in RW and added the item number and item description fields to the report (the unmodified report has the vendor item/description which I don't need).  However, when I create a word template based on the Modified RW report, I don't have any fields appearing in the GP fields dropdown in the template and not sure how/why they're not there …. any ideas please?


  4. Janine,  If you don't see any fields after selecting the Field list button, then that could be a bug that we had prior to GP 2010 SP1.  I would suggest loading GP 2010 R2 if possible as there were numerous fixes in that release.  Then the field list should show up.  Make sure that you load the Microsoft Dynamics GP Add in for Word as it does not install automatically.  


  5. After the installation of the Word Template Plug-in for GP, fire up Word and you need to go into the Word options, Customize Ribbon,  and enable the 'developer' tab, because it is not enabled by default out of the box and the installation of the Add-in doesn't enable it neither…
    Once this done, when you open a GP Word Template from GP, select the Developer Tab and you should see a GP icon on the right side (Microsoft Dynamics GP Templates) with option likes 'Field List' and 'Add/Remove Source'.
    To be able to use a modified Word Template, you need to make sure the Alternate/Modified Forms & Reports security is set properly to the users. What I don't understand at this point is why GP prepares the Word Template with an .htm extension, thus firing IE up to display the report ????
    If anyone has experienced this, I'ld be glad to know how to fix it…


  6. The only time the report should print with an htm extension is if it can't find the word template.  In the report destination, if you select template and GP can't find it, it will send the report to html with a .htm extenstion.  So then you need to look at what security is set to and what template is set to default, that type of thing.  If you can't see the problem, then go back to the original non modified and see if that works.


  7. Marisol,
    Yes, you would export the xml as Dave describes above and then use the dag.exe tool to generate a template from that.  At that point, it shouldn't be any different than any existing template.


  8. Hi Haroon
    Calculated Fields from a Report Writer report will be included.  You just need to sync the template with the report.
    Either use the method in this post.
    Or create a new template based on your current one, which will now have the new fields included.


  9. I had to add a calculated field so I added one field to default report and exported it's XML and imported the same in Word Template and also added my required field to word template.
    Now, when I am adding this word template to Microsoft Dynamics GP, I am getting this error "The template you selected cannot be added to this report.". Any idea about this error.


  10. Hi Haroon
    The most common reason is that the document is still open in Word. Make sure all instances of Word are closed.
    If you still have trouble, please log a support case. The blog's comments is not the appropriate platform for support.


  11. I am trying to send by email in PDF format a Blank  Sale Invoice trom Template created from the xml RW file with no success. I went through the assign process for company and Customer as describe in the documentation.
    Every time i try to send with email i receive the "A Word Template must be assigned before sending this document….
    Any idea?


  12. My documents are in sync, but I cannot get the "global" company name and company address1, 2,3 to actially show up on the template. They do print on he standard form


Please post feedback or comments

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.