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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Event OnAfterDocumentPrintReady is not raised during printing in BC18

(0) ShareShare
ReportReport
Posted on by

Hi Everyone
I'm trying to subscribe to the OnAfterDocumentPrintReady event to define what happens when a user chooses to print a report.
The problem is that this event, in BC18, seems not to be raised. Even using the "Event Recorder" I can't find it in the list.

Event Recorder BC18

EventRecorderBC18.PNG

I think that the problem is not related to my code, because in BC16 everything works fine. Do you know why it happens?

Event Recorder BC16

EventRecorderBC16.PNG

My goal is to get the InputStream of the pdf report when a user presses the "print" button on the request page,
do you know if there is any other similar event I can subscribe to?

Thank you.

I have the same question (0)
  • Suggested answer
    Lars Lohndorf-Larsen Profile Picture
    on at

    Hello,

    This was changed in BC17 and is kind of documented here: The trigger only runs from an extension printer:

    Printing Reports - Business Central | Microsoft Docs

    pastedimage1660559009333v1.png

    So from BC17 the trigger is not used for browser prints or Windows server print jobs. It was a bug in early 16 versions that it could be called for other setups, which actually caused a high number of session crashes.

    Sorry if this is not helpful to you, but I hope it at least clarifies what you see and that you have other triggers / events that you can use.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,116

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 764 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 635 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans