This document describes the Document Viewer that is used to display report previews in Silverlight applications.
For Silverlight, the XtraReports Suite provides a DocumentViewer control, intended for publishing reports in Silverlight applications. The Document Viewer can also display a toolbar (a BarManager or a RibbonControl) that contains buttons for performing various operations on a document.
To show a report in a Document Viewer, add a DocumentViewer instance to your Silverlight application.
Then, perform the following steps.
Enable the AutoCreateDocument property of the added Document Viewer, and define its DocumentViewer.Model property as follows.
<dxp:DocumentViewer Name="documentViewer1" AutoCreateDocument="True"> <dxp:DocumentViewer.Model> <dxp:ReportPreviewModel ServiceUri="../ReportService1.svc" ReportName="SilverlightApplication1.Web.XtraReport1" /> </dxp:DocumentViewer.Model> </dxp:DocumentViewer>
The Document Viewer provides the following options for performing various operations on the document.