{"title":"Codeunit 9651 Document Report Mgt., obsolete","url":"https://jonas-paprotka.de/ref/codeunit/9651-document-report-mgt/obsolete/","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":"obsolete","total":13,"rows":[{"kind":"procedure","name":"MergeWordLayout(ReportID: Integer; ReportAction: Option SaveAsPdf,SaveAsWord,SaveAsExcel,Preview,Print,SaveAsHtml; InStrXmlData: InStream; FileName: Text)","obsolete":{"state":"Pending","reason":"Update calling code to use the function with an OutStream parameter","tag":"15.3"},"obsoleteSince":17,"last":17},{"kind":"procedure","name":"MergeWordLayout(ReportID: Integer; ReportAction: Option SaveAsPdf,SaveAsWord,SaveAsExcel,Preview,Print,SaveAsHtml; InStrXmlData: InStream; FileName: Text; var DocumentStream: OutStream)","obsolete":{"state":"Pending","reason":"This procedure will be replaced by the report event CustomDocumentMerger. Subscribe to it to override the merging behavior.","tag":"20.0"},"obsoleteSince":20,"last":22},{"kind":"procedure","name":"TryXmlMergeWordDocument(var InStrWordDoc: InStream; var InStrXmlData: InStream; var OutStrWordDoc: OutStream)","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"},"obsoleteSince":20,"last":22},{"kind":"procedure","name":"CalculateUpgradeChangeSet(var ReportUpgradeCollection: DotNet ReportUpgradeCollection)","obsolete":{"state":"Pending","reason":"The upgrade will be handled by the platform.","tag":"20.0"},"obsoleteSince":20,"last":22},{"kind":"procedure","name":"GetWordLayoutStream(ReportID: Integer; var LayoutStream: OutStream; var Success: Boolean)","obsolete":{"state":"Pending","reason":"This procedure will be eventually replaced by platform functionality. Subscribe to the event FetchReportLayoutByCode instead.","tag":"20.0"},"obsoleteSince":20,"last":22},{"kind":"event","name":"OnAfterConvertToPdf(var TempBlob: Codeunit \"Temp Blob\"; ReportID: Integer)","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"},"obsoleteSince":20,"last":22},{"kind":"event","name":"OnAfterGetCustomLayoutCode(ReportID: Integer; var CustomLayoutCode: Code[20])","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"},"obsoleteSince":20,"last":22},{"kind":"event","name":"OnAfterMergeWordDocument(ReportID: Integer; InStrXmlData: InStream; var TempBlob: Codeunit \"Temp Blob\")","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"},"obsoleteSince":20,"last":22},{"kind":"event","name":"OnBeforeMergeDocument(ReportID: Integer; ReportAction: Option SaveAsPdf,SaveAsWord,SaveAsExcel,Preview,Print,SaveAsHtml; var InStrXmlData: InStream; PrinterName: Text; OutStream: OutStream; var Handled: Boolean; IsFileNameBlank: Boolean)","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"},"obsoleteSince":20,"last":22},{"kind":"event","name":"OnBeforeMergeWordDocument()","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"},"obsoleteSince":20,"last":22},{"kind":"event","name":"OnBeforeCalculateUpgradeChangeSetSetCustomReportLayoutFilters(var CustomReportLayout: Record \"Custom Report Layout\")","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"},"obsoleteSince":20,"last":22},{"kind":"event","name":"OnMergeReportLayoutOnSuppressCommit(ReportID: Integer; var IsHandled: Boolean)","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"},"obsoleteSince":20,"last":22},{"kind":"event","name":"OnAfterTryXmlMergeWordDocument(var OutStrWordDoc: OutStream)","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"},"obsoleteSince":20,"last":22}]}