# Report.Execute(Integer, Text [, RecordRef]) Method
> Version: _Available or changed with runtime version 1.0._
Runs a report in preview or processing-only mode without showing the request page in the client. The preview document will be downloaded as a PDF file to the user's browser client, where it can be read with the PDF reader. It won't open the Business Central preview page in the browser. The method gets the request page parameter values as an input parameter string from a RunRequestPage method call. The OnOpen and OnClose triggers on the request page will run even though the request page is not shown.
## Syntax
```al
 Report.Execute(Number: Integer, Parameters: Text [, RecordRef: RecordRef])
```
## Parameters
Number
Type: ../integer/integer-data-type
The ID of the report that you want to run. If the report that you specify does not exist, then a run-time error occurs.
Parameters
Type: ../text/text-data-type
A 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.
*[Optional] RecordRef*
Type: ../recordref/recordref-data-type
The RecordRef that refers to a record in a table.
## See Also
report-data-type
Getting started with AL<../../devenv-get-started>
Developing extensions<../../devenv-dev-overview>

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-execute-integer-string-recordref-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. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/report/report-execute-integer-string-recordref-method/
