---
title: "Codeunit 228 Test Report-Print"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/228-test-report-print/
type: codeunit
id: 228
name: "Test Report-Print"
app: "Base Application"
namespace: Microsoft.Foundation.Reporting
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/228-test-report-print/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 228 Test Report-Print

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/228-test-report-print/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| PrintGenJnlBatch | (Record Gen. Journal Batch) | - | public | 17-28 | - | - |
| PrintGenJnlLine | (var Record Gen. Journal Line) | - | public | 17-28 | - | - |
| PrintVATStmtName | (Record VAT Statement Name) | - | public | 17-28 | - | - |
| PrintVATStmtLine | (var Record VAT Statement Line) | - | public | 17-28 | - | - |
| PrintItemJnlBatch | (Record Item Journal Batch) | - | public | 17-28 | - | - |
| PrintItemJnlLine | (var Record Item Journal Line) | - | public | 17-28 | - | - |
| PrintIntrastatJnlLine | (var Record Intrastat Jnl. Line) | - | public | 17-24 | Pending 22.0 | Intrastat related functionalities are moved to Intrastat extensions. |
| PrintResJnlBatch | (Record Res. Journal Batch) | - | public | 17-28 | - | - |
| PrintResJnlLine | (var Record Res. Journal Line) | - | public | 17-28 | - | - |
| PrintSalesHeader | (Record Sales Header) | - | public | 17-28 | - | - |
| PrintSalesHeaderPrepmt | (Record Sales Header) | - | public | 17-28 | - | - |
| PrintPurchHeader | (Record Purchase Header) | - | public | 17-28 | - | - |
| PrintPurchHeaderPrepmt | (Record Purchase Header) | - | public | 17-28 | - | - |
| PrintBankAccRecon | (Record Bank Acc. Reconciliation) | - | public | 17-28 | - | - |
| PrintFAJnlBatch | (Record FA Journal Batch) | - | public | 17-28 | - | - |
| PrintFAJnlLine | (var Record FA Journal Line) | - | public | 17-28 | - | - |
| PrintInsuranceJnlBatch | (Record Insurance Journal Batch) | - | public | 17-28 | - | - |
| PrintInsuranceJnlLine | (var Record Insurance Journal Line) | - | public | 17-28 | - | - |
| PrintServiceHeader | (Record Service Header) | - | public | 17-27 | Pending 25.0 | Replaced by same procedure in codeunit "Serv. Test Report-Print" |
| PrintWhseJnlBatch | (Record Warehouse Journal Batch) | - | public | 17-28 | - | - |
| PrintWhseJnlLine | (var Record Warehouse Journal Line) | - | public | 17-28 | - | - |
| PrintInvtPeriod | (Record Inventory Period) | - | public | 17-28 | - | - |
| PrintJobJnlBatch | (Record Job Journal Batch) | - | public | 17-28 | - | - |
| PrintJobJnlLine | (var Record Job Journal Line) | - | public | 17-28 | - | - |
| CalcSalesDiscount | (var Record Sales Header) | - | public | 24-28 | - | - |
| CalcPurchDiscount | (var Record Purchase Header) | - | public | 24-28 | - | - |
| RunOnCalcServDiscOnBeforeRun | (Record Service Header, var Record Service Line) | - | internal | 25-27 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCalcSalesDiscount | (var Record Sales Header, var Record Sales Line) | 17-28 | - | - |
| Integration event | OnAfterCalcPurchDiscount | (var Record Purchase Header, var Record Purchase Line) | 17-28 | - | - |
| Integration event | OnCalcSalesDiscOnAfterSetFilters | (var Record Sales Line, Record Sales Header) | 17-28 | - | - |
| Integration event | OnCalcPurchDiscOnAfterSetFilters | (var Record Purchase Line, Record Purchase Header) | 17-28 | - | - |
| Integration event | OnCalcSalesDiscOnBeforeRun | (Record Sales Header, var Record Sales Line) | 17-28 | - | - |
| Integration event | OnCalcPurchDiscOnBeforeRun | (Record Purchase Header, var Record Purchase Line) | 17-28 | - | - |
| Integration event | OnCalcServDiscOnBeforeRun | (Record Service Header, var Record Service Line) | 17-27 | Pending 25.0 | Replaced by same event in codeunit "Serv. Test Report-Print" |
| Integration event | OnPrintGenJnlLineOnAfterGenJnlLineCopy | (var Record Gen. Journal Line) | 18-28 | - | - |
| Integration event | OnBeforePrintGenJnlLine | (var Record Gen. Journal Line, var Boolean) | 20-28 | - | - |
| Integration event | OnPrintVATStmtLineOnBeforeReportRun | (Record VAT Statement Template, Record VAT Statement Line, var Boolean) | 20-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.
