In order to load a document from data, the DocumentData property must retrieve a Base64 encoded string in the internal TX Text Control format. If you want to load a document from another format such as DOCX, the document must be converted first using the ServerTextControl. Typically, the document is loaded in the Controller and passed to the View as a Model.

If a document is loaded from data, the DocumentPath property can contain a filename which is displayed in the status bar.

This demo uses the MVC version of TXTextControl.Web.MVC.DocumentViewer included in TX Text Control .NET Server for ASP.NET. The functionality is compatible across all supported platforms.

Version X18 SP3

No code required.

No code required.

No code required.

Next Sample

© 2020 Copyright Text Control GmbH and Text Control, LLC. All rights reserved. We documents.