# ASP.NET DocumentViewer Sample Online

> TX Text Control Server for ASP.NET 15.0 introduces the ASP.NET DocumentViewer with ReadOnly and Edit modes. The Edit mode supports MS Word form fields including FormText, FormDropDown, and FormCheckBox, enabling server-side PDF output and local XML data export on form submission.

> **Note:** This article is outdated and may no longer be accurate.

- **Author:** Bjoern Meyer
- **Published:** 2009-05-15
- **Modified:** 2026-03-05
- **Description:** TX Text Control Server for ASP.NET 15.0 introduces the ASP.NET DocumentViewer with ReadOnly and Edit modes. The Edit mode supports MS Word form fields including FormText, FormDropDown, and FormCheckBox, enabling server-side PDF output and local XML data export on form submission.
- **2 min read** (339 words)
- **Tags:**
  - ASP.NET
  - Document Viewer
  - .NET Server
  - Sample
- **Web URL:** https://www.textcontrol.com/blog/2009/05/15/aspnet-documentviewer-sample-online/
- **LLMs URL:** https://www.textcontrol.com/blog/2009/05/15/aspnet-documentviewer-sample-online/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2009/05/15/aspnet-documentviewer-sample-online/llms-full.txt

---

In TX Text Control Server for ASP.NET (incl. Windows Forms) 15.0, we introduced the ASP.NET DocumentViewer. The DocumentViewer is a completely new server component in TX Text Control 15.0. It provides a very easy way to display the contents of a document, edit a template's form fields and to navigate around a document within a web browser.

![Text Control](https://s1-www.textcontrol.com/assets/dist/blog/2009/05/15/a/assets/tx15_formfiller.webp "Text Control")We just published a new [live sample](#) to our demo server that shows how to use the ASP.NET DocumentViewer to fill out forms.

The ASP.NET DocumentViewer implements two edit modes: *ReadOnly* and *Edit*.

The ReadOnly mode can be used to display all supported documents in an ASP.NET web site. You are able to navigate through all pages, as well as change the zoom factor. The ASP.NET DocumentViewer's API can be also used to load a document, set the current page number or to change the zoom factor. This enables you to create your own user interface, for example by providing your own tool or navigation-bar.

Internally, the DocumentViewer is based on the newly introduced [Page Rendering Engine](https://www.textcontrol.com/product/tx-text-control-dotnet-winforms/whats-new/) of TX Text Control Server for ASP.NET (incl. Windows Forms) which creates high quality, scalable images of each page of the document.

The new live demo shows a typical work-flow of a form. The form (in our case a US tax form) will be displayed to the user in the DocumentViewer. The form is an MS Word DOCX file including MS Word form fields of type FormText, FormDropDown and FormCheckBox. This being the case, you can use your legacy MS Word form templates with this new ASP.NET component.

The user is able to complete the form and click 'Submit form' to create a print-ready PDF server-side. Additionally, data that has already been added to the form can be saved as an XML data file on the local machine in order to complete the document later.

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Related Posts

- [Reporting: Styling the DocumentViewer for ASP.NET](https://www.textcontrol.com/blog/2015/06/14/reporting-styling-the-documentviewer-for-aspnet/llms.txt)
- [High-Performance Text Replacement in Large DOCX Files using C# .NET](https://www.textcontrol.com/blog/2025/07/30/high-performance-text-replacement-in-large-docx-files-using-csharp-dotnet/llms.txt)
- [Document Viewer 33.2.1 Released: New Event and Bug Fixes](https://www.textcontrol.com/blog/2025/07/30/document-viewer-33-2-1-released-new-event-and-bug-fixes/llms.txt)
- [Building an ASP.NET Core Backend (Linux and Windows) for the Document Editor and Viewer](https://www.textcontrol.com/blog/2025/03/26/building-an-asp-net-core-backend-for-the-document-editor-and-viewer/llms.txt)
- [TX Text Control Document Editor and Viewer for Blazor Released](https://www.textcontrol.com/blog/2025/03/25/tx-text-control-document-editor-and-viewer-for-blazor-released/llms.txt)
- [Getting Started: Document Viewer for Blazor in ASP.NET Core](https://www.textcontrol.com/blog/2025/03/25/getting-started-document-viewer-for-blazor-in-asp-net-core/llms.txt)
- [Announcing Our Work on a Blazor Component for Document Editing and Viewing](https://www.textcontrol.com/blog/2025/01/24/announcing-our-work-on-a-blazor-component-for-document-editing-and-viewing/llms.txt)
- [Preparing Documents for E-Signing for Multiple Signers in .NET C#](https://www.textcontrol.com/blog/2024/11/13/preparing-documents-for-e-signing-for-multiple-signers-in-net-c-sharp/llms.txt)
- [ASP.NET Core: Use the Document Editor and Viewer in the Same Razor View](https://www.textcontrol.com/blog/2024/11/08/asp-net-core-use-the-document-editor-and-viewer-in-the-same-razor-view/llms.txt)
- [Optimizing Digital Signature Workflows: Starting with MS Word DOCX Files Instead of PDFs in C#](https://www.textcontrol.com/blog/2024/09/27/optimizing-digital-signature-workflows-starting-with-ms-word-docx-files-instead-of-pdfs-in-csharp/llms.txt)
- [Document Viewer: Setting the Rendering Mode](https://www.textcontrol.com/blog/2024/08/22/document-viewer-setting-the-rendering-mode/llms.txt)
- [View MS Word DOCX and PDF Documents using a .NET C# Document Viewer for ASP.NET Core and ASP.NET](https://www.textcontrol.com/blog/2024/08/08/view-ms-word-docx-and-pdf-documents-using-a-net-csharp-document-viewer-for-aspnet-core-and-aspnet/llms.txt)
- [Stay Up-To-Date: Document Viewer 32.3.1 Released](https://www.textcontrol.com/blog/2024/08/08/stay-up-to-date-document-viewer-32-3-1-released/llms.txt)
- [Getting Started Video Tutorial: How to Add Electronic and Digital Signatures to PDF Documents in ASP.NET Core C#](https://www.textcontrol.com/blog/2024/08/05/getting-started-video-tutorial-how-to-add-electronic-and-digital-signatures-to-pdf-documents-in-asp-net-core-csharp/llms.txt)
- [Getting Started Video Tutorial: How to use the Document Viewer in ASP.NET Core C#](https://www.textcontrol.com/blog/2024/08/05/getting-started-video-tutorial-how-to-use-the-document-viewer-in-asp-net-core-csharp/llms.txt)
- [Transforming Financial Documents into Smart and Secure Forms in ASP.NET Core C#](https://www.textcontrol.com/blog/2024/05/01/transforming-financial-documents-into-smart-and-secure-forms-in-asp-net-core-c-sharp/llms.txt)
- [Document Viewer: Long Polling Support for Loading Documents](https://www.textcontrol.com/blog/2024/04/25/document-viewer-long-polling-support-for-loading-documents/llms.txt)
- [Adding and Sharing Annotations across Document Types using the Document Viewer in ASP.NET Core C#](https://www.textcontrol.com/blog/2024/04/19/adding-and-sharing-annotations-across-document-types-using-the-document-viewer-in-asp-net-core-c-sharp/llms.txt)
- [Adding a Security Middleware to ASP.NET Core Web Applications to Protect TX Text Control Document Editor and Document Viewer Endpoints](https://www.textcontrol.com/blog/2024/03/18/adding-a-security-middleware-to-asp-net-core-web-applications-to-protect-tx-text-control-document-editor-and-document-viewer-endpoints/llms.txt)
- [Building an ASP.NET Core Backend Application to Host the Document Editor and Document Viewer](https://www.textcontrol.com/blog/2024/03/14/building-an-asp-net-core-backend-application-to-host-the-document-editor-and-document-viewer/llms.txt)
- [Document Viewer 32.2.1 Released](https://www.textcontrol.com/blog/2024/03/13/document-viewer-3221-released/llms.txt)
- [Customizing Electronic Signature Fonts for Typed Signatures in Angular and ASP.NET Core](https://www.textcontrol.com/blog/2024/03/11/customizing-electronic-signature-fonts-for-typed-signatures-in-angular-and-asp-net-core/llms.txt)
- [TX Text Control React Packages Released](https://www.textcontrol.com/blog/2024/02/29/tx-text-control-react-packages-released/llms.txt)
- [Handling Electronic Signatures in a Blazor Web App using .NET 8](https://www.textcontrol.com/blog/2024/02/06/handling-electronic-signatures-in-a-blazor-web-app-using-net-8/llms.txt)
- [Using the Document Viewer in a Blazor Server App with .NET 8](https://www.textcontrol.com/blog/2024/01/29/using-the-document-viewer-in-a-blazor-server-app-with-net-8/llms.txt)
