Hi Alex,
It is very strange. I do have replied to your issue on 5.27,6.3 and 7.14. I
am not sure what had happened that you did not see the three posts.
Here I will repost my reply for you. If you still have any concern, can you
post your email so that I can contact you via another approach. Or please
repost a new post in a new thread.
Thanks!
============================================================================
=
I have replied you in on 5.27th. In case there is any error, I repost my
post here.
Also I attach the attachment too.
Mainly we need to release the document in the host app when exit.
Here is a C# app which host the DSOFramer, and it will release the
Document. We need to ensure the code will be called when we close the fom.
private void button2_Click(object sender, System.EventArgs e)
{
Object mvalue=Missing.Value;
Word.DocumentClass
doc=(Word.DocumentClass)axFramerControl1.ActiveDocument;
wordApp=(Word.ApplicationClass)doc.Application;
axFramerControl1.Close();
wordApp.Application.Quit(ref mvalue,ref mvalue,ref mvalue);
Marshal.ReleaseComObject(wordApp);
}
=========================================================
From: (e-mail address removed) ("Peter Huang" [MSFT])
Date: Fri, 27 May 2005 09:40:46 GMT
Subject: Re: Hosted Word is not released with a C# add-in - update
Newsgroups: microsoft.public.office.developer.com.add_ins
Hi
Based on my research, we need to release the document explicitly.
Here I attach the sample which will show the approach.
You may have a check the HostApp in the attachment.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
===============================================================
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.