I am trying to download the context.application.createDocument()
var myDoc = context.application.CreateDocument("base64 format string that shows in document");
//myDoc.open();
var body = myDoc.body;
downloadDoc(body);
function downloadDoc(docBody: any){
var blob = new Blod([docBody], type: 'application/vnd.ms-word'});
var url = window.URL.createObjectURL(blob);
var a= document.createElement('a');
a.href =url;
a.download = 'myDocFile.doc';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
}
the result of the code is showing [Object] [Object] in doc file, it is not showing the text having some styles