+ All Categories
Home > Technology > Using Print Management in Dynamics AX to Manage Forms

Using Print Management in Dynamics AX to Manage Forms

Date post: 08-May-2015
Category:
Upload: murray-fife
View: 1,709 times
Download: 5 times
Share this document with a friend
Description:
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.
58
© 2013. All rights reserved. USING PRINT MANAGEMENT TO MANAGE FORMS Dynamics AX | Print Management 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.
Transcript
Page 1: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

USING PRINT MANAGEMENT TO MANAGE

FORMS

Dynamics AX | Print Management

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.

Page 2: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

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.

Page 3: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Sending a Form via

Email

Find your form that you would like to email, and open up the Print Management dialog box as you would normally do.

Page 4: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Sending a Form via

Email

Click on the Printer setup button, and select the version of the report that you want to email.

Page 5: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Sending a Form via

Email

When the Print destination settings dialog box shows up, change the destination to E-mail.

This will change the options for the printing, and allow you to specify To & CC email addresses, and also the e-mail subject.

Also the File format field allows you to choose the attachment format for the report.

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.

Page 6: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Sending a Form via

Email

Dynamics AX should send you a note that your e-mail has been sent.

Page 7: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Sending a Form via

Email

The manual e-mail option will use your local email client to send the form.

Page 8: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Sending a Form via

Email

And the form will be attached to the e-mail itself.

Page 9: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

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.

Page 10: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Configuring Your

Default SMTP

Server

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.

To do this, open up the Email parameters form from the System folder of the Setup group within the System administration area page.

Page 11: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Configuring Your

Default SMTP

Server

Within the E-mail parameters form, make sure that you have an Outgoing Mail server defined.

Page 12: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Automatically

Emailing A Form Via

SMTP

To configure the form defaults, open up the Form setupmenu 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 receivablearea page.

Page 13: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Automatically

Emailing A Form Via

SMTP

From within the General section, click on the Print management button.

Page 14: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Automatically

Emailing A Form Via

SMTP

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.

Page 15: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Automatically

Emailing A Form Via

SMTP

Click on the arrow head to the right of the Destinationfield, and select the Printer setup sub menu item to override the default settings.

Page 16: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Automatically

Emailing A Form Via

SMTP

This will open up the default Print destination settingsand we can change the default option from Printer to Email, and update the default email settings for the form.

When you have finished updating the defaults, click on the OK button.

Page 17: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Automatically

Emailing A Form Via

SMTP

Now the defaults for the forms print management options will show that you are emailing the form.

Page 18: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Automatically

Emailing A Form Via

SMTP

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

Page 19: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

SETTING PRINT MANAGEMENT DEFAULTS BY

CUSTOMERFor 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 customers 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.

Page 20: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Setting Print

Management

defaults by

Customer

Open up the All customers menu item from within the Customers folder of the Common group within the Accounts receivable area page.

Page 21: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Setting Print

Management

defaults by

Customer

Select the customer that you want to override the default organization configuration for and from the Generalribbon bar group, select the Print management menu button.

Page 22: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Setting Print

Management

defaults by

Customer

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.

Page 23: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Setting Print

Management

defaults by

Customer

Right-mouse-click on the form that you want to change, and from the context menu, select the Override option.

Page 24: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Setting Print

Management

defaults by

Customer

This will allow you to edit the default settings for that form for the customer that you selected.

Page 25: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Setting Print

Management

defaults by

Customer

Click on the arrow head to the right of the Destinationfield and select the Printer setup menu option.

Page 26: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Setting Print

Management

defaults by

Customer

Now change the default printer options to specify the customers email address, and also the default subject for the email.

When finished, click on the OK button to save your changes.

Page 27: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Setting Print

Management

defaults by

Customer

Now the customer defaults for the forms print management options will show that you are emailing the form.

Page 28: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Setting Print

Management

defaults by

Customer

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

Page 29: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

USING THE BATCH SERVER TO

AUTOMATICALLY GENERATE FORMSFor 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.

Page 30: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Configuring Your

Batch Server

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, open the Batch groups menu item from the Setup group within the System administration area page.

Page 31: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Configuring Your

Batch Server

To create a new Batch group click on the New button in the menu bar.

Page 32: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Configuring Your

Batch Server

Give your new batch group a Group ID and also a Description.

Page 33: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Configuring Your

Batch Server

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.

Page 34: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Configuring Your

Batch Server

Now that the Batch group is defined, click on the Closebutton.

Page 35: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Using the Batch

Server to

Automatically

Generate Forms

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.

Page 36: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Using the Batch

Server to

Automatically

Generate Forms

When the Batch processing dialog box is displayed, select the default Batch group that you want to perform the print job on.

Page 37: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Using the Batch

Server to

Automatically

Generate Forms

Make sure that you check the Batch processing check box.

To configure when and how often the batch job is ran, click on the Recurrence button.

Page 38: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Using the Batch

Server to

Automatically

Generate Forms

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 OKbutton.

Page 39: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Using the Batch

Server to

Automatically

Generate Forms

Click on the OK button on the Batch processing form to save your batch job.

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. After you have selected your notification preferences, click the OK button, and you are done.

Page 40: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Using the Batch

Server to

Automatically

Generate Forms

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.

Page 41: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Using the Batch

Server to

Automatically

Generate Forms

This will show you all of the active batch jobs.

Page 42: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

CREATING ALTERNATE FORM VERSIONS

If you want to look even more clever 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.

Page 43: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

Open up Visual Studio, and select the Application Explorer browser.

Page 44: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

From the File menu select the New Project menu item.

Page 45: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

When the template browser opens, select the Report Model project template, and give your project a more appropriate name.

Page 46: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

Page 47: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

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.

Page 48: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

Select one of the original reports that are in the Designsgroup, and make a copy.

Page 49: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

Rename your new report to something a little more appropriate.

Page 50: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

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.

Page 51: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

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 AOTmenu item.

Page 52: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

Now when you open up AOT, if you look within the SSRS Reports group you will see your new report option.

Page 53: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

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.

Page 54: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

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.

Page 55: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

Within the code, find the area where your forms are being registered, and add a new addOther entry that references your new form.

After adding the registration entry, save your changes.

Page 56: Using Print Management in Dynamics AX to Manage Forms

© 2013. All rights reserved.

Creating Alternate

Form Versions

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

Page 57: Using Print Management in Dynamics AX to Manage Forms

About

Murray Fife

Page 58: Using Print Management in Dynamics AX to Manage Forms

Recommended