Report.ValidateAndPrepareLayout(Integer, 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(Number: Integer, LayoutStream: InStream, var PreparedLayoutStream: InStream, ReportLayoutType: ReportLayoutType)

Parameters

Number
 Type: Integer
The ID of the report to ensure compatibility with.

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