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 .");
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
Post a Comment