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

Announcements

No record found.

News and Announcements icon
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.

  • Suggested answer
    Lars Lohndorf-Larsen Profile Picture
    Microsoft Employee 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 796 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 481 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 377 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans