Hi,

Did you add the following line of code after the word procssing is over
"ComDocument.quit()".

It will close the winword.exe application.

Regards,
Sumit


On 5/3/07, karthik kumar <[EMAIL PROTECTED]> wrote:
>
>   Hi All ,
> I have tried accessing Microsoft Word through COM in Axapta 3.0 to print a
> document , as the execution completes i find that WINWORD.EXE ,
> application still remains in the memory , as i run the code several times (
> as many as 3 times) for each execution a application gets loaded into
> memory. Is there any way to end the process through code ? , as of now i am
> closing the WINWORD.exe process manually from the Task Manager by clicking
> End process. i have given portion of code here ,
>
>
> COM COMAppl, COMdocuments, COMdocument;
> ;
>
> COMAppl = new COM('Word.Application');
> COMdocuments = COMappl.documents();
> COMdocument = COMdocuments.add('c:\\LSMTableInfo_Word.dot');
> {
> ----------- // further execution
> --------
> -------
> ------------
>
> }
> COMdocument.saveAs('c:\\test.doc',1,false,'',false); // saving the
> document
>
> // is the any way to end the process of Word from memory through code ? as
> the code directly saves the output into file.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> [Non-text portions of this message have been removed]
>
> 
>


[Non-text portions of this message have been removed]

Reply via email to