Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created November 23, 2023 14:04
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/4f4a4a67e919b342e411dccda711f9cd to your computer and use it in GitHub Desktop.
Save bjoerntx/4f4a4a67e919b342e411dccda711f9cd to your computer and use it in GitHub Desktop.
@{
if (Model.TemplateData != null)
{
@Html.TXTextControl().TextControl().LoadDataFromJson(Model.InvoiceData).LoadText(Convert.FromBase64String(Model.TemplateData), TXTextControl.Web.BinaryStreamType.InternalUnicodeFormat).Render()
}
else
{
@Html.TXTextControl().TextControl().LoadDataFromJson(Model.InvoiceData).Render()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment