Skip to main content

Posts

Showing posts with the label .doc file

Print using Microsoft Word in MSD axapta

Print using Microsoft Word in axapta void run() { COM COMAppl, COMDocuments, COMDocument; ; COMAppl = new COM('Word.Application'); COMDocuments = COMAppl.documents(); // enter path to the template Reports_wordtemplate.dot COMDocument = COMdocuments.add('d:\\Reports_WordTemplate.dot'); if (COMDocument) { this.setLabels(COMDocument); this.sendInventTable(COMDocument); this.showDocument(COMAppl); } }