ReportServicePreviewModel Class
In This Article
Provides the Preview Model functionality for a Report Service.
Namespace: DevExpress.Xpf.Printing
Assembly: DevExpress.Xpf.Printing.v14.2.dll
#Declaration
#Remarks
To show a document's print preview, do the following.
- Create an ReportServicePreviewModel and assign it to the DocumentViewer.Model property of a Document Viewer.
To assign a report to the model, specify the ReportServicePreviewModel.ReportName and ReportServicePreviewModel.ServiceUri properties and call the ReportServicePreviewModel.CreateDocument method, which generates the report document for print preview.
Do not call the ReportServicePreviewModel.CreateDocument method until the report is assigned to a model.
#Inheritance
Object
PreviewModelBase
DocumentPreviewModelBase
ReportServicePreviewModel
See Also
DevExpress.Xpf.Printing.ReportPreviewModel