Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created April 8, 2020 15:54
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/dbd0f40c63ad89a9623c1509e717ba91 to your computer and use it in GitHub Desktop.
Save bjoerntx/dbd0f40c63ad89a9623c1509e717ba91 to your computer and use it in GitHub Desktop.
@using TXTextControl.Web.MVC.DocumentViewer
@using System.IO;
@Html.TXTextControl().DocumentViewer(settings =>
{
settings.DocumentPath =
AppDomain.CurrentDomain.GetData("DataDirectory").ToString() + "\\demo.rtf ";
settings.Dock = DocumentViewerSettings.DockStyle.Window;
}).Render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment