web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to implement print management for a custom report.

(0) ShareShare
ReportReport
Posted on 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

I have the same question (0)
  • @rp@n Profile Picture
    28 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
    11,633 on at
    RE: How to implement print management for a custom report.

    No problem. You welcome.

  • Community Member Profile Picture
    on at
    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 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
    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
    11,633 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
doninep Profile Picture

doninep 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans