# ExcelLayout Property
> Version: _Available or changed with runtime version 9.0._
Sets the Excel layout that is used on a report and returns it as a data stream.
## Applies to
 Report
 Report Extension
> NOTE
> Reports support both Excel, RDL, and Word layouts. See devenv-defaultlayout-property.
## Remarks
> WARNING
> Using the report properties DefaultLayout, ExcelLayout, RDLCLayout, and WordLayout should be avoided as these properties will be deprecated in a later release. Instead, it's recommended to use the property DefaultRenderingLayout together with the new rendering syntax introduced in runtime version 9.0.
> In Visual Studio Code, when hovering over any line with the ExcelLayout, RDLLayout, or WordLayout property, you can use the code action Convert to 'Rendering' to convert to the new rendering syntax.
> See devenv-defaultrenderinglayout-property.
> The use of any of these report properties impact performance as every call loads the full layout in memory even if the intent is only to check if a given report had a layout of the given type.
## Example
The following example shows how to use this property to generate the MyExcelReport.xlsx file.
```al
pageextension 50100 MyExtension extends "Customer List"
{
    trigger OnOpenPage();
    begin
        report.Run(Report::MyExcelReport);
    end;
}

report 50124 MyExcelReport
{
    DefaultLayout = Excel;
    WordLayout = 'MyExcelReport.xlsx';
}
```
## Related information
Creating an Excel layout report<../devenv-howto-excel-report-layout>
devenv-wordlayout-property
Creating a Word Layout Report<../devenv-howto-report-layout>
devenv-rdlclayout-property
Creating an RDL Layout Report<../devenv-howto-rdl-report-layout>
Developing reports<../devenv-reports>
Defining multiple report layouts<../devenv-multiple-report-layouts>
Get 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/properties/devenv-excellayout-property, 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/properties/devenv-excellayout-property/
