Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active July 13, 2022 11:50
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/f9baf631bdb664873fb2f1c4b9dae9fb to your computer and use it in GitHub Desktop.
Save bjoerntx/f9baf631bdb664873fb2f1c4b9dae9fb to your computer and use it in GitHub Desktop.
@using TXTextControl.DocumentServices.DocumentEditor;
@model List<DSServerMerge.Models.Report>
<div class="row">
<div class="col-12">
<input class="mb-3" type="button" onclick="mergeDocument()" value="Merge Template" />
@Html.TXTextControl().DocumentEditor(s => {
s.Width = "100%";
s.Height = "40rem";
s.ServiceUrl = "https://trial.dsserver.io";
s.OAuthSettings.ClientId = "";
s.OAuthSettings.ClientSecret = "";
s.JsonData = Newtonsoft.Json.JsonConvert.SerializeObject(Model);
}).Render()
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment