Codeunit 44 ReportManagement

Base Application, Microsoft.Foundation.Reporting

Source AL, 434 lines

src/Layers/W1/BaseApp/Foundation/Reporting/ReportManagement.Codeunit.allines 15 to 30 of 434, Copyright (c) Microsoft Corporation. MIT

codeunit 44 ReportManagement{    SingleInstance = true;    trigger OnRun()    begin    end;    var        NotSupportedErr: Label 'The value is not supported.';        NoWritePermissionsErr: Label 'Unable to set the default printer. You need write (Insert, Modify and Delete) permission for the Printer Selection table.';    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Reporting Triggers", 'GetPrinterName', '', false, false)]    local procedure GetPrinterNameSubscriber(ReportID: Integer; var PrinterName: Text[250])    begin        GetPrinterName(ReportID, PrinterName);

All 434 lines

Events 15 in 29

[IntegrationEvent] OnAfterGetPrinterName(ReportID: Integer; var PrinterName: Text[250]; PrinterSelection: Record "Printer Selection")17-29
[IntegrationEvent] OnAfterHasCustomLayout(ObjectType: Option Report,Page; ObjectID: Integer; var LayoutType: Option None,RDLC,Word,Excel,Custom)17-29changed in 20
[IntegrationEvent] OnAfterGetPaperTrayForReport(ReportID: Integer; var FirstPage: Integer; var DefaultPage: Integer; var LastPage: Integer)17-29
[IntegrationEvent] OnAfterSubstituteReport(ReportId: Integer; RunMode: Option Normal,ParametersOnly,Execute,Print,SaveAs,RunModal; RequestPageXml: Text; RecordRef: RecordRef; var NewReportId: Integer)17-29
[IntegrationEvent] OnAfterDocumentPrintReady(ObjectType: Option Report,Page; ObjectID: Integer; ObjectPayload: JsonObject; DocumentStream: InStream; var Success: Boolean)17-29
[IntegrationEvent] OnAfterSetupPrinters(var Printers: Dictionary of [Text[250], JsonObject])17-29
[IntegrationEvent] OnAfterIntermediateDocumentReady(ObjectId: Integer; ObjectPayload: JsonObject; DocumentStream: InStream; var TargetStream: OutStream; var Success: Boolean)new in 20

All 20 events in 17-29

Public procedures 4 in 29

GetPrinterSelectionsPage(var PageID: Integer; var IsHandled: Boolean)17-29
SetupPrinters(var Printers: Dictionary of [Text[250], JsonObject])17-29
GetPrinterName(ReportID: Integer; var PrinterName: Text[250])new in 22
GetCompanyMetadata(var CompanyMetadata: JsonObject)new in 29

All 10 procedures in 17-29

Changes 3 in 29

List17181920212223242526272829
Procedures6611
Events111123212
GetCompanyMetadata(var CompanyMetadata: JsonObject)new in 29
added
[IntegrationEvent] OnApplicationReportMergeStrategy(ObjectId: Integer; LayoutCode: Text; var InApplication: Boolean; var IsHandled: Boolean)20 to 28
gone
[IntegrationEvent] OnWordDocumentMergerAppMode(ObjectId: Integer; LayoutCode: Text; var InApplication: Boolean; var IsHandled: Boolean)20 to 28
gone

All 37 changes in 17-29