Saves a report as a Microsoft Office Excel file.

[Ok :=] Report.SAVEASEXCEL(Number, FileName[, Record])
[Ok :=] Report.SAVEASEXCEL(FileName)

Parameters

Number

Type: Integer

The ID of the report that you want to run. You can click View, and then click C/AL Symbol Menu to select the report from a list.

If the report you specify does not exist, a run-time error occurs.

FileName

Type: Text

The path to and the name of the file that you want to save the report as.

Record

Type: Record

Specifies which record to use in the report. Any filters that have been applied to the record that you specify will be used.

Expand imageProperty Value/Return Value

Expand imageRemarks

Expand imageSee Also