Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created January 27, 2020 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/c387ae2cfa5873c1de5d853db1491729 to your computer and use it in GitHub Desktop.
Save bjoerntx/c387ae2cfa5873c1de5d853db1491729 to your computer and use it in GitHub Desktop.
@using TXTextControl.Web.MVC.DocumentViewer
@model myFirstAzureWebApp.Models.DocumentView
<div style="width: 1000px; height: 600px;">
@Html.TXTextControl().DocumentViewer(settings =>
{
settings.DocumentData = Model.DocumentData;
settings.DocumentPath = Model.DocumentName;
settings.Dock = DocumentViewerSettings.DockStyle.Fill;
}).Render()
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment