Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

How to implement print management for a custom report.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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
    @rp@n on at
    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
    syed baber 11,627 on at
    RE: How to implement print management for a custom report.

    No problem. You welcome.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to implement print management for a custom report.

    Thank you so much Baber bhai

  • Verified answer
    syed baber Profile Picture
    syed baber 11,627 on at
    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
    Community Member Microsoft Employee on at
    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
    syed baber 11,627 on at
    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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,996 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans