Back to Devexpress

Add a Document Viewer to an ASP.NET Web Forms Application

xtrareports-118431-web-reporting-asp-net-webforms-reporting-document-viewer-in-asp-net-webforms-reporting-quick-start-add-the-document-viewer-to-an-aspnet-webforms-application.md

latest2.1 KB
Original Source

Add a Document Viewer to an ASP.NET Web Forms Application

  • Jan 10, 2025
  • 2 minutes to read

Watch Video: Reporting: Web Viewer (YouTube)

Step-by-Step Guide

This tutorial demonstrates how to add the Document Viewer to a web page in an ASP.NET Web Forms application:

  1. Open an application that contains a report or add a new report in Visual Studio.

  2. Expand the DX.25.2: Reporting Toolbox tab, drag the ASPxWebDocumentViewer control, and drop it onto a web page.

  3. Rebuild the project. Assign a report to the ASPxWebDocumentViewer control in one of the following ways:

  4. Add the “resources” section to the application’s Web.config file with the following content to automatically load the required scripts:

  5. Run the application to view the Document Viewer in a web browser.

Troubleshooting

Review the following help topic: Document Viewer Requirements and Limitations

Customization

Review the following help topic for information on how you can customize the Web Document Viewer: Document Viewer Customization (ASP.NET Web Forms).

See Also

Create a Report in Visual Studio

Use DevExpress Visual Studio Templates to Create an ASP.NET Web Forms Reporting App with a Document Viewer