Using Print Management To Route Dynamics AX Forms

The Print Management feature within Dynamics AX does a lot more than just allow you to print reports. It also allows you to e-mail reports, automatically print and distribute forms, and also have custom form versions by customer & vendor.

In this walkthrough we will show some of the different options available to you and also how to configure them within Dynamics AX. You will learn how to:

  1. Send a Form via Email
  2. Automatically Email A Form
  3. Set Email defaults by Customer
  4. Use the Batch Server to Automatically Generate Forms
  5. Creating Alternate Form Versions

Sending a Form via Email

Forms don’t have to always be printed. You can also email them directly from the Dynamics AX client through the print management options without any additional configuration.

In this example we will show how you can send any report or form to your e-mail client.

How to do it…

To send a form via e-mail, follow these steps:

  1. Find your form that you would like to email, and open up the Print Management dialog box as you would normally do.
  2. Click on the Printer setup button, and select the version of the report that you want to email.
  3. When the Print destination settings dialog box shows up, change the destination to E-mail.
  4. This will change the options for the printing, and allow you to specify To & CC email addresses, and also the e-mail subject.
  5. Also the File format field allows you to choose the attachment format for the report.
  6. After changing the e-mail options, click on the OK button to update your selection, and then click OK on the Printer setup form to email your form.

How it works…

Dynamics AX should send you a note that your e-mail has been sent. The manual e-mail option will use your local email client to send the form, and the form will be attached to the e-mail itself.

Automatically Emailing A Form Via SMTP

The Print Management feature also allows you to configure the default print options for your documents and forms so that you don’t have to override the default print settings each time you print a form. You can use this to configure default printer settings, and also to set your forms to automatically email.

In this example we will show how you can use the Form Settings to configure forms to automatically email.

Before You Start…

Before we start on the form configuration, there is one configuration step that you need to perform, which is the definition of a default SMTP Server that the forms will be sent through. This option bypasses the use of the default mail client as the mail transport which makes it a lot more flexible.

  1. To do this, open up the Email parameters form from the System folder of the Setup group within the System administration area page.
  2. Within the E-mail parameters form, make sure that you have an Outgoing Mail server defined.

How to do it…

To configure a form to be sent via SMTP, follow these steps:

  1. Open up the Form setup menu item from the Forms folder of the Setup group within the associated area page. In this example we are updating the Order Confirmation form, so we are accessing the form defaults from the Accounts receivable area page.
  2. From within the General section, click on the Print management button.
  3. When the Print management form opens, find the form that you want to configure and expand its grouping node. You will see all of the different form variations which you can select and in the details panel you will see the default print management options.
  4. Click on the arrow head to the right of the Destination field, and select the Printer setup sub menu item to override the default settings.
  5. This will open up the default Print destination settings and we can change the default option from Printer to Email, and update the default email settings for the form.
  6. When you have finished updating the defaults, click on the OK button.
  7. Now the defaults for the forms print management options will show that you are emailing the form.

How it works…

To use the default settings, just check the Use print management destination box on the Printer setup form.

Setting Print Management defaults by Customer

For some forms and reports, you may want to have different configurations depending on who the form is associated with. In the case of the Order Confirmation, you probably the confirmation to be sent to the customer’s individual email accounts rather than the global one configured in the form defaults.

In this example we will show how to set up form management defaults by customer.

How to do it…

To set print management defaults by customer, follow these steps:

  1. Open up the All customers menu item from within the Customers folder of the Common group within the Accounts receivable area page.
  2. Select the customer that you want to override the default organization configuration for and from the General ribbon bar group, select the Print management menu button.
  3. Now within the Print management setup form you will have a new group of form configurations that you can change that are specific to that particular customer. Right-mouse-click on the form that you want to change, and from the context menu, select the Override option.
  4. This will allow you to edit the default settings for that form for the customer that you selected.
  5. Click on the arrow head to the right of the Destination field and select the Printer setup menu option.
  6. Now change the default printer options to specify the customers email address, and also the default subject for the email.
  7. When finished, click on the OK button to save your changes.
  8. Now the customer defaults for the forms print management options will show that you are emailing the form.

How it works…

To use the default settings, just check the Use print management destination box on the Printer setup form.

Using the Batch Server to Automatically Generate Forms

For a lot of forms, you may want to configure them to automatically run without you having to kick off the process every time. You can do this simply by creating a batch job for the form, and once it is set, then Dynamics AX will do all of the work for you.

In this example we will show how you can configure batch jobs for your reports and forms.

Before You Start…

In order to submit your forms and reports to a batch server, you need to make sure that you have one configured. To do this, follow these steps:

  1. Open the Batch groups menu item from the Setup group within the System administration area page.
  2. Click on the New button in the menu bar.
  3. Give your new batch group a Group ID and also a Description.
  4. Click on the Batch servers tab, and select the servers that you want to run the batch processes on from the Remaining servers list box and click on the < button.
  5. Now that the Batch group is defined, click on the Close button.

How to do it…

To use the batch server to automatically generate forms, follow these steps:

  1. In all of the print dialog boxes, there is a Batch button in the bottom right. Selected the defaults that you want to use when the batch job is submitted, and click it.
  2. When the Batch processing dialog box is displayed, select the default Batch group that you want to perform the print job on. Also, Make sure that you check the Batch processing check box.
  3. To configure when and how often the batch job is ran, click on the Recurrence button.
  4. In the Recurrence form, you can configure how many times you want to run this batch job, which days, and also how often. After you have finished click on the OK button.
  5. Click on the OK button on the Batch processing form to save your batch job.
  6. This will open up the alerts options, where you can specify if when and how you want to be notified that the jobs have been completed.
  7. After you have selected your notification preferences, click the OK button, and you are done.

How it works…

If you want to see all of the batch jobs that you have configured within Dynamics AX, in order to maintain them, click on the Batch jobs menu item in the Batch jobs folder of the Inquiries group of the System administration area page. This will show you all of the active batch jobs.

Creating Alternate Form Versions

If you want to look even cleverer with what you are doing with forms, and don’t mind getting your hands a little dirty through development, then you may want to create custom variations of forms that can be selected from within the Print Management configuration. In order to do this though you do need to have a copy of Visual Studio, and update the code in AOT, but don’t be too concerned, you are not doing anything that is too hard.

In this example we will show how you can create a new template form that will be available within the Print Management.

How to do it…

To create alternate form versions, follow these steps:

  1. Open up Visual Studio, and select the Application Explorer browser.
  2. From the File menu select the New Project menu item.
  3. When the template browser opens, select the Report Model project template, and give your project a more appropriate name.
  4. Expand the SSRS Reports group, and find the report that you want to create a new template version for. In this case we are selecting the default report for the Sales Confirmation which is SalesConfirm.
  5. Select one of the original reports that are in the Designs group, and make a copy.
  6. Rename your new report to something a little more appropriate.
  7. If you double click on your new design, then you will be taken directly into the SSRS report designer, where you can make any changes that you want to the report.
  8. When you are happy with the changes that you have made to the report, return to the Solution Explorer, right-mouse-click on the project, and select the Add to AOT menu item.
  9. Now when you open up AOT, if you look within the SSRS Reports group you will see your new report option. To publish the report definition to the Reporting Services server, right-mouse-click on the SSRS Report within AOT, and select the Deploy Element menu item.
  10. There is one final step that is required, and that is to register the new report format as a valid option within the Print Management dialog box. To do this, find the PrintMgmtReportFormat table within the Data Dictionary Tables, expand out the methods, and open up the populate method.
  11. Within the code, find the area where your forms are being registered, and add a new addOther entry that references your new form.
  12. After adding the registration entry, save your changes.

How it works…

Now when you open up the Print management setup form, within the Report format drop down, you will be able to select your new report format that you have just created.


The print management feature within Dynamics AX is a simple way to set up your reports and forms to be automatically distributed, without having to purchase other 3rd party add-ons. In addition to the examples that we showed in this walkthrough, you should also consider:

  • Setting up automatic distribution lists for recurring company reports, and having them queued to print through the batch servers.
  • Emailing to in-house fax servers to send faxes to the handful of people that still require them.
  • Routing reports to different printers based on conditions.
  1. Trond said:

    Hello Murray,
    I’m trying to post purchase orders in batch using print management and found your article interesting. But where do you set from which email address the purchase order is sent?

    When I’m posting in batch, the sender is always the same as the receiver, and that wouldn’t make much sense for a vendor.


  2. KH Tan said:

    Hi Murray,

    The email created by the Print Management option is very plain. So far, I can’t find a way to include text for email body and also the subject. Perhaps you are able to share where can we type a default email body such as “Dear customers, please find the …..”. Look forward to hear from you. Thanks.

    • KH, I wonder if you can use the e-mail templates… I will need to try that out and get back to you.

      • KH Tan said:

        Thank you for your quick reply despite your busy schedule. We are also looking into combining the e-mail templates with print management but so far fail to find the link. We believe these joining features will be applicable to a lot of Dynamics AX customers. Looking forward for your kind advice. Thank you in advance.

      • KH Tan said:

        Dear Mr. Murray,

        Hope this message finds you well.
        Just wonder if I have any luck to have a solution to link print management and email templates? May be, I need to consider customization to include email body when sending email from print management.

        Kock Hua

  3. Boris said:

    Its like you read my thoughts! You seem to understand so
    much about this, such as you wrote the e-book in it or something.

    I believe that you simply could do with a few
    % to drive the message house a bit, but instead of that,
    that is fantastic blog. An excellent read. I’ll certainly be

    • Thanks Boris. I am waiting to see the improvements that are coming out in CU7, and R3 around print management and parameterization of the recipients. This should make the process even more useful. Murray.

  4. Heya i am for the first time here. I found this board and
    I in finding It truly useful & it helped me out a lot. I’m hoping to present one thing back and aid others like you aided me.

  5. Jacek Gawecki said:

    This is great! Is there any way I could get a Word document of this?

  6. David said:

    Sending a form via Email is a pretty useful tool and we’re currently using it, sending Sales quotes via e-mail through the print management step.

    We still have a question regarding the file that is sent. For the quote, the file sent is named “SalesQuotation.Report.pdf”, which is the AOT Object name.

    Is it possible to have the flexibility to choose the file name?

    Since we do business in French and English, we’d like a French file name for our French speaking customers without doing the “Save as…” additionnal step.


    • David, have you thought about creating a new version of the report design with a different name? Then you can use Print Management top send out different versions to different customers based on their location. Murray.

      • David said:

        Thanks Murray for this answer. It’s an interesting option, I’ll take a look at this with my team.


Leave a Reply

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

You are commenting using your 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.

%d bloggers like this: