To be able to run the Document Viewer, the client web browser must support HTML5.
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.
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.