{"title":"Codeunit 9651 Document Report Mgt., events","url":"https://jonas-paprotka.de/ref/codeunit/9651-document-report-mgt/events/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":9651,"name":"Document Report Mgt.","app":"Base Application","versions":"17-29","url":"https://jonas-paprotka.de/ref/codeunit/9651-document-report-mgt/","json":"https://jonas-paprotka.de/ref/codeunit/9651-document-report-mgt.json"},"aspect":"events","total":8,"rows":[{"name":"OnAfterConvertToPdf","sig":"(var Codeunit Temp Blob, Integer)","named":"(var TempBlob: Codeunit \"Temp Blob\"; ReportID: Integer)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(var TempBlob: Codeunit \"Temp Blob\"; ReportID: Integer)","returns":"","kind":"integrationevent","access":"local","obsolete":null},{"from":20,"to":22,"named":"(var TempBlob: Codeunit \"Temp Blob\"; ReportID: Integer)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"}}]},{"name":"OnAfterGetCustomLayoutCode","sig":"(Integer, var Code[20])","named":"(ReportID: Integer; var CustomLayoutCode: Code[20])","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(ReportID: Integer; var CustomLayoutCode: Code[20])","returns":"","kind":"integrationevent","access":"local","obsolete":null},{"from":20,"to":22,"named":"(ReportID: Integer; var CustomLayoutCode: Code[20])","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"}}]},{"name":"OnAfterMergeWordDocument","sig":"(Integer, InStream, var Codeunit Temp Blob)","named":"(ReportID: Integer; InStrXmlData: InStream; var TempBlob: Codeunit \"Temp Blob\")","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(ReportID: Integer; InStrXmlData: InStream; var TempBlob: Codeunit \"Temp Blob\")","returns":"","kind":"integrationevent","access":"local","obsolete":null},{"from":20,"to":22,"named":"(ReportID: Integer; InStrXmlData: InStream; var TempBlob: Codeunit \"Temp Blob\")","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"}}]},{"name":"OnBeforeMergeDocument","sig":"(Integer, Option, var InStream, Text, OutStream, var Boolean, Boolean)","named":"(ReportID: Integer; ReportAction: Option SaveAsPdf,SaveAsWord,SaveAsExcel,Preview,Print,SaveAsHtml; var InStrXmlData: InStream; PrinterName: Text; OutStream: OutStream; var Handled: Boolean; IsFileNameBlank: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(ReportID: Integer; ReportAction: Option SaveAsPdf,SaveAsWord,SaveAsExcel,Preview,Print,SaveAsHtml; var InStrXmlData: InStream; PrinterName: Text; OutStream: OutStream; var Handled: Boolean; IsFileNameBlank: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null},{"from":20,"to":22,"named":"(ReportID: Integer; ReportAction: Option SaveAsPdf,SaveAsWord,SaveAsExcel,Preview,Print,SaveAsHtml; var InStrXmlData: InStream; PrinterName: Text; OutStream: OutStream; var Handled: Boolean; IsFileNameBlank: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"}}]},{"name":"OnBeforeMergeWordDocument","sig":"()","named":"()","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"()","returns":"","kind":"integrationevent","access":"local","obsolete":null},{"from":20,"to":22,"named":"()","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"}}]},{"name":"OnBeforeCalculateUpgradeChangeSetSetCustomReportLayoutFilters","sig":"(var Record Custom Report Layout)","named":"(var CustomReportLayout: Record \"Custom Report Layout\")","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(var CustomReportLayout: Record \"Custom Report Layout\")","returns":"","kind":"integrationevent","access":"local","obsolete":null},{"from":20,"to":22,"named":"(var CustomReportLayout: Record \"Custom Report Layout\")","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"}}]},{"name":"OnMergeReportLayoutOnSuppressCommit","sig":"(Integer, var Boolean)","named":"(ReportID: Integer; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"},"range":"17-22","first":17,"last":22,"obsoleteSince":20,"spans":[{"from":17,"to":19,"named":"(ReportID: Integer; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null},{"from":20,"to":22,"named":"(ReportID: Integer; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"}}]},{"name":"OnAfterTryXmlMergeWordDocument","sig":"(var OutStream)","named":"(var OutStrWordDoc: OutStream)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"},"range":"19-22","first":19,"last":22,"obsoleteSince":20,"spans":[{"from":19,"to":19,"named":"(var OutStrWordDoc: OutStream)","returns":"","kind":"integrationevent","access":"local","obsolete":null},{"from":20,"to":22,"named":"(var OutStrWordDoc: OutStream)","returns":"","kind":"integrationevent","access":"local","obsolete":{"state":"Pending","reason":"The rendering of Word documents will be handled on the Platform. To override the behavior, subscribe on the report event CustomDocumentMerger.","tag":"20.0"}}]}]}