{"title":"Report.Print(Integer, Text [, Text] [, RecordRef]) Method","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/report/report-print-method/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/report/report-print-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/report/report-print-method","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Prints a specified report without running the request page.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"Report.Print(Integer, Text [, Text] [, RecordRef]) Method","slug":"reportprintinteger-text-text-recordref-method","at":0,"chars":2925},{"level":2,"title":"Syntax","slug":"syntax","at":359,"chars":116},{"level":2,"title":"Parameters","slug":"parameters","at":475,"chars":766},{"level":2,"title":"Remarks","slug":"remarks","at":1241,"chars":832},{"level":2,"title":"Example (end-to-end scenario)","slug":"example-end-to-end-scenario","at":2073,"chars":155},{"level":2,"title":"Example (using `Report::<object identifier>` syntax)","slug":"example-using-reportobject-identifier-syntax","at":2228,"chars":563},{"level":2,"title":"Related information","slug":"related-information","at":2791,"chars":134}],"text":"# Report.Print(Integer, Text [, Text] [, RecordRef]) Method\n> Version: _Available or changed with runtime version 1.0._\nPrints a specified report without running the request page. Instead of using the request page to obtain parameters at runtime, the method gets the parameter values as an input parameter string, typically from a RunRequestPage method call.\n## Syntax\n```al\n Report.Print(Number: Integer, Parameters: Text [, PrinterName: Text] [, RecordRef: RecordRef])\n```\n## Parameters\nNumber\nType: ../integer/integer-data-type\nThe ID of the report that you want to print. If the report that you specify does not exist, then a run-time error occurs.\nParameters\nType: ../text/text-data-type\nA string of request page parameters as XML to use to run the report. The parameter string is typically retrieved from the return value a RunRequestPage method call.\n*[Optional] PrinterName*\nType: ../text/text-data-type\nThe name of the printer to use to print the report. The printer must be set up on the client computer. If you do not set this variable, the printer that is set as the default printer is used.\n*[Optional] RecordRef*\nType: ../recordref/recordref-data-type\nThe RecordRef that refers to the table in which you want to find a record.\n## Remarks\nYou typically use this method together with the report-runrequestpage-method. The RunRequestPage method runs a report request page without actually running the report, but instead, it returns the parameters that are set on the request page as a string. You can then call the Print method to get the parameter string and print the report.\n> NOTE\n> Be careful when crafting the string for the RunRequestPage parameter without using the RunRequestPage method. If the XML content is malformed, then a runtime error might occur when calling Report.Execute.\n> NOTE\n> If no default printer has been set up, or if the printer supplied in the PrinterName parameter doesn't exist, a PDF version of the document is downloaded to the client.\n> NOTE\n> The Report.Print method isn't supported for reports running with an Excel Layout.\n## Example (end-to-end scenario)\nFor a simple example that illustrates how to use the Print method, see example in the report-runrequestpage-method topic.\n## Example (using `Report::<object identifier>` syntax)\nAs mentioned above, the Report.Print method will throw a runtime error if no report with the supplied object ID exists. If you know the report object, a safe way to call Report.Print is to use the `Report::<object identifier>` syntax as the compiler will tell you if the report object doesn't exist.\n```al\nprocedure PrintKnownReport()\nvar\n    RequestPagePayload: Text;\nbegin\n    RequestPagePayload := Report.RunRequestPage(Report::MyReport);\n    Report.Print(Report::MyReport, RequestPagePayload);\nend;\n```\n## Related information\nreport-data-type\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>"}