Thank you very much..

Regards
Karthikkumar


----- Original Message ----
From: Sumit Loya <[EMAIL PROTECTED]>
To: Axapta-Knowledge-Village@yahoogroups.com
Sent: Friday, May 4, 2007 5:00:34 PM
Subject: Re: [Axapta-Knowledge-Village] End MSWORD process thorugh COM

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 <karthikkumar_ [EMAIL PROTECTED] com> 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.Applicati on');
> 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]





 
____________________________________________________________________________________
Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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

Reply via email to