Announcements
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
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
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.
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
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.
André Arnaud de Cal... 291,359 Super User 2024 Season 2
Martin Dráb 230,370 Most Valuable Professional
nmaenpaa 101,156