Created
March 15, 2024 15:45
-
-
Save bjoerntx/323fb8404b450d3c7710b61854f2d1cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mergeTemplate() { | |
TXTextControl.saveDocument(TXTextControl.StreamType.InternalUnicodeFormat, (document: any) => { | |
this.mailMergeData.template = document.data; | |
// send a post request to the server | |
this.http.post('/mailmerge/mergetemplate', this.mailMergeData).subscribe( | |
(result) => { | |
this.mailMergeData = result; | |
TXTextControl.loadDocument( | |
TXTextControl.StreamType.InternalUnicodeFormat, | |
this.mailMergeData.document); | |
} | |
); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment