Printing from Forms – Dynamics AX [X++]

Friends, Hope you all had a great weekend!!

we all know that printing is available from all forms with a data source through the Auto Report.
If a special report has been created to support general printing from the form, implement it on the form’s user interface.

To do this we need to Override the standard print method on the form. The report prints when the Print icon is activated. Please note: An explicit Print button should not be added to the form.
If (in rare cases) a Print button is needed, implement it by using a Print CommandButton control.
Implement the call to the report by using its menu item (depending on the functionality needed) as shown in the following example.

void print()
new MenuFunction(menuitemoutputstr(Cust),MenuItemType::Output).run();

Reports with more specialized functionality should be added to the form by using menu item buttons.

Happy DAX’ing…


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 )

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

%d bloggers like this: