Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id : 63cu1mXyDzDfv6ONCjGkCn
Microsoft Dynamics AX (Archived)

How to implement print management for a custom report.

Like (0) ShareShare
ReportReport
Posted on 15 May 2015 10:21:32 by

Hi,

I am trying to implement print management for my custom report. I have setup my report in the AR->Setup->Forms->Form Setup->Print management. 

Now on the posting form if user select a different destination the output will be generated on that destination otherwise on the default destination provided in the AR form setup. 

I need to know how can I implement that functionality.

Thanks in advance

*This post is locked for comments

  • @rp@n Profile Picture
    4 on 16 Jul 2020 at 14:07:09
    RE: How to implement print management for a custom report.

    HI Baber bai,

    i have created a new report for Sales Invoice for Japan. It's absolutely new format.

    now in print management setup >> customer invoice >> 2 reports are there

    1. Sales invoice.report < stnd.>

    2. Sales invoice_JP. report < customized new report >

    SOINV.jpg

    Note --  I have created three new classes for new sales invoice format for Japan ( Controller, Contract and DP )

    When user clicked on Original/Preeview >> It should run the report based on Print management setting.

    i saw the above replies and go through the CustAccountStatmentExtController  class

    so, what i understand

    i need to extend my controller class with GiroPrintMgmtFormLetterController and runPrintMgmt method need to add.

    Kindly guide me

    1. any other methods need to add or only runPrintMgmt method is sufficient.

    2. Under runPrintMgmt method,  which code need to copy for print management?

    3. if i mentioned print management check box in dialog then it's where exactly called in controller class?

    kindly help me out Baber bhai. it's very urgent

  • syed baber Profile Picture
    11,633 on 19 May 2015 at 21:37:56
    RE: How to implement print management for a custom report.

    No problem. You welcome.

  • Community Member Profile Picture
    on 19 May 2015 at 15:30:03
    RE: How to implement print management for a custom report.

    Thank you so much Baber bhai

  • Verified answer
    syed baber Profile Picture
    11,633 on 18 May 2015 at 22:36:15
    RE: How to implement print management for a custom report.

    Hi Saad,

    Look at the runPrintMgmt method of CustAccountStatmentExtController class. It has a call to formletterReport.loadPrintsettings method and inside the same method it is setting the value in parm method for printmanagement based on 'Use print management destination checkbox'. For all print management reports,  similar approach should be followed.

    Have a look at this example and let me know if you have further queries.

    Thanks,

    Baber.

  • Community Member Profile Picture
    on 18 May 2015 at 13:21:02
    RE: How to implement print management for a custom report.

    Hi Baber,

    I am unable to fetch the default settings of my report. I setup the default settings in the AR/Setup/Form Setup/Print management.

    In case user has checked "use print destination settings" I need to output the report on the settings provided on the form mentioned above.

    Kindly let me know how to fetch default SRSPrintDestinationSettings for a report.

  • Suggested answer
    syed baber Profile Picture
    11,633 on 15 May 2015 at 11:03:40
    RE: How to implement print management for a custom report.

    Hi Saad,

    There are lot of examples in AX like this. For example, you can take a look at external customer account statement report. There is a print management checkbox on report parameter form, if it is checked, then report prints according to the settings defined under print management, otherwise it runs based on the default destination.

    Please let me know if you have further queries.

    Thanks,

    Baber.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,865 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete