WebDocumentViewerOperationLogger.ReportLoadedFromLayout(String, XtraReport) Method
Called when a report is restored from a serialized layout under certain conditions.
Namespace: DevExpress.XtraReports.Web.WebDocumentViewer
Assembly: DevExpress.XtraReports.v24.2.Web.dll
NuGet Package: DevExpress.Web.Reporting.Common
Declaration
Parameters
Name | Type | Description |
---|---|---|
reportId | String | A String value. |
report | XtraReport | An XtraReport object. |
Remarks
The ReportLoadedFromLayout method is called when the Document Viewer or Report Designer Preview opens a report and the following conditions are met:
- a method that opens a report receives a report instance as a parameter. If a report is specified by a string (report url or ID), the IWebDocumentViewerReportResolver service methods are called instead.
- after the report is initially loaded, the report cache is cleared (i.e., the report is unloaded/removed from memory) and the viewer attempts to reload it from the previously saved layout. Note that the PreviewReportCustomizationService methods are called instead on the initial load.
The ReportLoadedFromLayout method may include a custom code required to add data that was not stored in the serialized layout. You can use this method to:
- update the report’s data source connection string;
- re-create an object data source bound to the report.
See Also