Last active
July 3, 2018 09:03
-
-
Save bjoerntx/e3db2bff25400b7cf9d60262bfa014d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Html.TXTextControl().DocumentViewer(settings => | |
{ | |
settings.DocumentData = Convert.ToBase64String( | |
File.ReadAllBytes(Server.MapPath("~/App_Data/Documents/car_insurance.tx"))); | |
settings.DocumentPath = "MyDocument.tx"; | |
settings.Dock = DocumentViewerSettings.DockStyle.Fill; | |
settings.IsSelectionActivated = true; | |
settings.ShowThumbnailPane = true; | |
}).Render() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment