THEMES
VIEWER

Reporting Overview

To be able to run the Document Viewer, the client web browser must support HTML5.
About Reporting

The DevExpress Report is displayed using the WebDocumentViewer extension in ASP.NET MVC web applications. Follow the three simple steps below to add a DevExpress WebDocumentViewer extension and use it to display your report. It's as easy as “M”, “V”, and “C”.

1. Model (the "M" in MVC). First, you will need a Model for the DevExpress WebDocumentViewer to bind to. The WebDocumentViewer can use an XtraReport as its data Model. You can create a new report using the DevExpress Report Designer for VisualStudio (learn more in our online documentation).

2. View (the "V" in MVC). Next, declare the WebDocumentViewer extension inside of the View and bind it to the Model.

@model DevExpress.XtraReports.UI.XtraReport
@Html.DevExpress().WebDocumentViewer(settings => {
    settings.Name = "documentViewer";
}).Bind(Model).GetHtml()


3. Controller (the "C" in MVC). Finally, the controller is where you will need to define the action methods that handle incoming HTTP requests and return corresponding Views. For example, the Overview action method below creates the corresponding View with the specified data Model object (an instance of the XtraReport1 class). As you can see, the native DevExpress WebDocumentViewer extension follows the ASP.NET MVC pattern while providing powerful features for your end-users.

public class HomeController : Controller {
    public ActionResult Overview() {
        return View(new XtraReport1());
    }
}

Key Features
  • Export
    DocumentViewer allows you to export its data to PDF, XLS, XLSX, CSV, HTML, MHT, TEXT, Image and RTF formats.
  • Integration with Charting and OLAP Data Mining
    You can use a linked pair of PivotGrid and Chart controls to visualize your report data.
  • Conditional Formatting
    Conditional formatting allows you to change the appearance (and visibility) of report elements that satisfy a specific condition.
  • Master-Detail Report
    DocumentViewer allows you to present master-detail information of any complexity.
Version: v2016 vol 2.4
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at info@devexpress.com or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.