Loads the proper custom RDLC layout for a report at run time and uses the layout to render the report.

ReportGetCustomRdlc(ReportID : Integer) : Text

Parameters

ObjectType

Type: Option

The Microsoft Dynamics NAV object type that is running. Currently only the Report value is supported.

ReportID

Type: Integer

The ID of the Microsoft Dynamics NAV report object that is run.

Return Value


Type: Text

The RDLC layout as text string.

Applies To

Report layout implementation in codeunit 1 ApplicationManagement.

Remarks

At report run time, this function is called if the HasCustomLayout Function determines that the report is currently set up to use a custom RDLC layout. The ReportGetCustomRdlc function is called after the OnPreReport Trigger is invoked.

Example

The following example shows the default implementation on the function in codeunit 1. This example uses a variable ReportLayout that has the data type Record and subtype Report Layout.

 Copy Code
EXIT(ReportLayout.GetCustomRdlc(ReportId));

See Also