---
title: "Codeunit 44 ReportManagement"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/44-reportmanagement/
type: codeunit
id: 44
name: "ReportManagement"
app: "Base Application"
namespace: Microsoft.Foundation.Reporting
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/44-reportmanagement/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 44 ReportManagement

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/44-reportmanagement/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Foundation.Reporting |
| Versions | 17-28 |
| Source file | Foundation/Reporting/ReportManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetPrinterSelectionsPage | (var Integer, var Boolean) | - | public | 17-28 | - | - |
| SetupPrinters | (var Dictionary) | - | public | 17-28 | - | - |
| SalesInvoiceReportReplacedNotify | (Integer, Text, var Record Sales Invoice Header) | - | internal | 18 | - | - |
| SalesQuoteReportReplacedNotify | (Integer, Text, var Record Sales Header) | - | internal | 18 | - | - |
| OrderConfirmReportReplacedNotify | (Integer, Text, var Record Sales Header) | - | internal | 18 | - | - |
| SalesCrMemoReportReplacedNotify | (Integer, Text, var Record Sales Cr.Memo Header) | - | internal | 18 | - | - |
| LearnMoreNotificationAction | (var Notification) | - | internal | 18 | - | - |
| TryNewReportAction | (var Notification) | - | internal | 18 | - | - |
| GetPrinterName | (Integer, var Text[250]) | - | public | 22-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterGetPrinterName | (Integer, var Text[250], Record Printer Selection) | 17-28 | - | - |
| Integration event | OnAfterHasCustomLayout | (Option, Integer, var Option) | 17-28 | - | - |
| Integration event | OnAfterGetPaperTrayForReport | (Integer, var Integer, var Integer, var Integer) | 17-28 | - | - |
| Integration event | OnAfterSubstituteReport | (Integer, Option, Text, RecordRef, var Integer) | 17-28 | - | - |
| Integration event | OnAfterDocumentPrintReady | (Option, Integer, JsonObject, InStream, var Boolean) | 17-28 | - | - |
| Integration event | OnAfterSetupPrinters | (var Dictionary) | 17-28 | - | - |
| Integration event | OnMergeDocumentReport | (Option, Integer, Option, InStream, Text, var OutStream, var Boolean) | 17-22 | Pending 20.0 | Replaced by the report event OnCustomDocumentMergerEx. Subscribe to it to change the merging behavior. |
| Integration event | OnAfterIntermediateDocumentReady | (Integer, JsonObject, InStream, var OutStream, var Boolean) | 20-28 | - | - |
| Integration event | OnAfterDocumentReady | (Integer, JsonObject, InStream, var OutStream, var Boolean) | 20-28 | - | - |
| Integration event | OnAfterDocumentDownload | (Integer, JsonObject, InStream, var Boolean) | 20-28 | - | - |
| Integration event | OnCustomDocumentMerger | (Integer, Option, InStream, InStream, var OutStream, var Boolean) | 20-22 | Pending 21.0 | Replaced by OnCustomDocumentMergerEx. |
| Integration event | OnCustomDocumentMergerEx | (Integer, Option, JsonObject, InStream, InStream, var OutStream, var Boolean) | 20-23 | - | - |
| Integration event | OnSelectReportLayoutCode | (Integer, var Text, var Option, var Boolean) | 20-28 | - | - |
| Integration event | OnFetchReportLayoutByCode | (Integer, Text, var OutStream, var Boolean) | 20-28 | - | - |
| Integration event | OnApplicationReportMergeStrategy | (Integer, Text, var Boolean, var Boolean) | 20-28 | Pending 26.0 | Replaced by customer render and layouts must be declared as custom types. |
| Integration event | OnWordDocumentMergerAppMode | (Integer, Text, var Boolean, var Boolean) | 20-28 | Pending 26.0 | Replaced by platform Word merge with version 24 |
| Integration event | OnSelectReportLayout | (var Record Report Layout List, var Boolean) | 21-28 | - | - |
| Integration event | OnCustomDocumentMergerEx | (Integer, Option, JsonObject, var InStream, InStream, var OutStream, var Boolean) | 24-28 | - | - |
| Integration event | OnGetFilename | (Integer, Text[250], JsonObject, Text[30], RecordRef, var Text, var Boolean) | 24-28 | - | - |
| Integration event | OnAfterSelectReportLayoutUI | (Integer, var Text, var Guid, Boolean) | 27-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
