Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2007

Tip: Looking for answers? Try searching our database.

Unable to close Microsoft Word within AxWebBrowser Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dean Richardson - 24 Jul 2007 17:22 GMT
Hello,

I am currently opening Word in an AxWebBrowser Control on a form. When
the user saves the saves the document using a save + close button on
the form, it saves the document, navigates the AxWebBrowser Control to
about:blank and exits word and then closes the form.

The exiting of word and the closing of the form is run in the
AxWebBrowser.NavigateComplete event handler.

The issue I have, is if the user clicks the close button on the form,
it still leaves word running.

If I try to exit word in the form.closing or form.closed event
handler, it has an error as the word document is still displaying in
the AxWebBrowser Control. Because the form is closing, it cannot run
the AxWebBrowser.NavigateComplete event handler.

This then leaves multiple instances of Word open in the Process
tables.

Does anyone know if there is a way of closing word without any errors
when the user closes the form?

Many Thanks,
Dean
Sheng Jiang[MVP] - 24 Jul 2007 19:45 GMT
Did you try dsoframer?

Signature

Sheng Jiang
Microsoft MVP in VC++

> Hello,
>
[quoted text clipped - 22 lines]
> Many Thanks,
> Dean
Dean Richardson - 26 Jul 2007 09:04 GMT
On 24 Jul, 19:45, "Sheng Jiang[MVP]" <sheng_ji...@hotmail.com.discuss>
wrote:
> Did you try dsoframer?
>
[quoted text clipped - 29 lines]
>
> - Show quoted text -

Hi,

In the end, we had the Word.Application open when the application
opened and closed it when the application closed. We then opened the
word documents as Word.Document and this opened within the existing
word app container.

I will use DSOFramer in future though as it looks better than the
AxWebBrowser control.

Thanks,
Dean

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.