Code to open MS word application from Axapta

This is a sample Code to open MS word application from Axapta. You can try following code in job.

 COM word;  
 COM Cdocuments;  
 ;  
 try  
 {  
 word = COM::getObject('Word.Application');  
 if (!word)  
 {  
 word = new COM('Word.Application');  
 }  
 Cdocuments= word.documents();  
 }  
 catch(Exception::Internal)  
 {  
 info("Internal Error");  
 }