Report.ValidateAndPrepareLayout(InStream, var InStream, ReportLayoutType) Method

Version: Available or changed with runtime version 9.0.

Validates if the provided report layout is compatible with the specified report and performs the required modifications so that it can be used for rendering.

Syntax

[Ok := ]  Report.ValidateAndPrepareLayout(LayoutStream: InStream, var PreparedLayoutStream: InStream, ReportLayoutType: ReportLayoutType)

Parameters

Report
 Type: Report
An instance of the Report data type.

LayoutStream
 Type: InStream
The stream containing the layout to be validated.

PreparedLayoutStream
 Type: InStream
The stream in which to return the prepared layout.

ReportLayoutType
 Type: ReportLayoutType
The type of the layout.

Return Value

[Optional] Ok
 Type: Boolean
true if the operation was successful; otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

See Also

Report Data Type
Get Started with AL
Developing Extensions