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.

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 X19 SP3 (29.0.302.500)

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

No code required.

No code required.

No code required.

Next Sample

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