From Data
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 32.0 SP4 (NuGet Version 32.4.0)
If a document is loaded from data, the DocumentPath property can contain a filename which is displayed in the status bar.
Sample Source Code
No code required.
No code required.
No code required.
© 2024 Copyright Text Control GmbH and Text Control, LLC. All rights reserved. We ♥ documents.