Write data to Word Document

COM document;
COM wordDocument;
COM range;
COM app;
;
app = new COM("Word.Application");
app.visible(true);
document = app.Documents();
wordDocument = document.add();
wordDocument.activate();
range = wordDocument.range();
range.insertBefore("Data written from AX .");

Comments

Popular posts from this blog

D365FO Use of FileUpload control to Read CSV file

"Object reference not set to an instance of an object Error" When you do show all Fields

D365FO Send Report as email attachment