Retrieves a report and passes it to the Web Document Viewer.
public WebDocumentViewerBuilder Bind( string reportUrl )
Public Function Bind( reportUrl As String ) As WebDocumentViewerBuilder
A string that specifies the report to display in the Document Viewer.
A WebDocumentViewerBuilder object for use in method chaining.
The method is used as illustrated in the following code snippet:
A string specified in this method is processed as follows:
The method checks for the service that implements the ICachedReportSourceWebResolver interface. If the service is available, the method queries the service to get the CachedReportSourceWeb object by the specified report's unique name. If an attempt succeeds, the CachedReportSourceWeb object is passed to the Document Viewer to render and display the report.
If the ICachedReportSourceWebResolver service is not available, the method checks for the IWebDocumentViewerReportResolver service implementation. If the service is available, the method queries the service to get the report instance by the specified report's unique name. If the attempt succeeds, the XtraReport object is passed to the Document Viewer to render and display the report.
If the IWebDocumentViewerReportResolver service is also unavailable, the string is passed to the ReportStorageWebExtension service. The built-in service implementation considers the specified string as the report URL and tries to read the file with that URL (path). If an attempt succeeds, it returns the byte array that contains the report in REPX format. You can register a custom web report storage service that implements a different logic.
The method with a string parameter allows you to implement a custom logic to cache and reuse reports in order to consume less memory and improve performance.