Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active December 2, 2015 16:46
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/0117432a3491da06d3cf to your computer and use it in GitHub Desktop.
Save bjoerntx/0117432a3491da06d3cf to your computer and use it in GitHub Desktop.
@using TXTextControl.Web
@using TXTextControl.Web.MVC
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
@Html.TXTextControl().TextControl(settings =>
{
settings.DocumentFileDirectory = Server.MapPath("~/App_Data/Documents");
}).LoadXMLDatabase(
Server.MapPath("~/App_Data/Documents/sample_db.xml")).LoadText(
Server.MapPath("~/App_Data/Documents/invoice.docx"),
StreamType.WordprocessingML).Render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment