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 disable print button when report already printed

(0) ShareShare
ReportReport
Posted on by 178

Hi Guys!

has anyone already do this?

Sames question with this >>>> Link1 and Link2

and also have a setup or maintenance that can reprint "Request reprint".

Hoping for your quick response.

Thank you

*This post is locked for comments

I have the same question (0)
  • Chandra Wijaya Setiawan Profile Picture
    1,145 on at
    RE: RE: How to disable print button when report already printed

    Hi JEMT,

    I can only think to enable user to access check box print during the invoice posting parameter and blocking their access right in the "Tax invoice journal>Show original" and >Use print management.

    let them have access to "Tax invoice journal>Show copy" to preview later on.

    When they need to print original copy, grant access right to manager only to access "Show original", but the request must be perform manually (via email etc).

    If this is not practical or not meet your requirement then customization is required.

  • JEMT Profile Picture
    178 on at
    RE: RE: How to disable print button when report already printed

    Hi Chandra

    Thank you for your response

  • Andrew Xu Profile Picture
    3,877 on at
    RE: RE: How to disable print button when report already printed

    JEMT,

    You can make it work with

    1. Add a 'printed' flag in your main data record table of your report, and once your report is already printed, that 'printed' flag needs to be updated to true. Refer to Interest Note printing in AX for details of how to do that.

    2. Once you have the status flag of that report, you can add logic based on it to control the printing behavior, destination and so forth.

  • JEMT Profile Picture
    178 on at
    RE: RE: How to disable print button when report already printed

    Hey Andrew,

    Thanks for your reply,

    i already done that.

    but there is problem, the report preview is still open ..

    how will i close the report preview right after the user print the report to the printer.

    Please let me know how could I do this.

    Thanks

  • RaviRaj Profile Picture
    530 on at
    RE: RE: How to disable print button when report already printed

    Hi jemt,

       * Add one new field(Checkbox) to master table then when the report is running  DP class process report method you update the value yes to new field

       * Form level select the button property change to auto declaration set yes

       * Form level disable the button based on the field value yes when the report print running set the value to yes, so automatically form level disable the button once report printed.

  • JEMT Profile Picture
    178 on at
    RE: How to disable print button when report already printed

    Hi Raja,

    Thanks for your reply.

    i already disable the button.

    but the report is still showing.. i want to close the print preview after i print to the printer.

    please let me know how to do that.

    tnx

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans