Skip to main content

ReportServicePreviewModel Class

Provides the Preview Model functionality for a Report Service.

Namespace: DevExpress.Xpf.Printing

Assembly: DevExpress.Xpf.Printing.v14.2.dll

#Declaration

public class ReportServicePreviewModel :
    DocumentPreviewModelBase

#Remarks

To show a document's print preview, do the following.

  1. Create an ReportServicePreviewModel and assign it to the DocumentViewer.Model property of a Document Viewer.
  2. 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

See Also