Loading 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.
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.DocumentViewer included TX Text Control .NET Server for ASP.NET.
No Controller code
© 2019 Copyright Text Control GmbH. All rights reserved.