DefaultRenderingLayout Property
Version: Available or changed with runtime version 9.0.
Sets the default layout that should be used for this report.
Applies to
- Report
Example
The following example shows how to use this property together with a rendering section.
report 50124 MyExcelReport
DefaultRenderingLayout = MyExcelLayout;
// More report properties goes here
// dataset definition goes here
rendering
{
layout(MyExcelLayout)
{
Type = Excel;
Caption = 'Excel layout for the sales report';
Summary = 'The Excel layout for the sales report is used for ad-hoc analysis';
LayoutFile = './Src/Reports/SalesReport.xlsx';
}
layout(MyWordLayout)
{
Type = Word;
Caption = 'Word layout for the sales report';
Summary = 'The Word layout for the sales report is used for print and pdf generation';
LayoutFile = './Src/Reports/SalesReport.docx';
}
}
Related information
Developing reports
Defining multiple report layouts
Get Started with AL
Developing Extensions