Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7502939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:03:06+00:00 2026-05-29T21:03:06+00:00

I have a requirement to open and manage a Word document, stored on the

  • 0

I have a requirement to open and manage a Word document, stored on the file system, from .NET code. In particular, I want to be able to show a dialog and possibly submit it to a server when the user closes the Word document in question.

Having experimented and searched a bit, I am not sure how to proceed with this. Possibilities appear to include:

  1. Using Process.Start and listening for the Exited event.
  2. Using Microsoft.Office.Interop.Word and then starting the doc through that and listening for the DocumentBeforeClose event.

Neither of these seems to entirely solve the problem, however. (1) because there will only be one Word process running for multiple open documents and the Exited event received will not necessarily correspond to the actual document that my code was responsible for opening. And (2) because it doesn’t cope with the case in which Word crashes, and it’s a hassle to get the tidying up of those COM objects right.

If anyone has an idea how to proceed with this, or an article that would help, I would be grateful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:03:09+00:00Added an answer on May 29, 2026 at 9:03 pm

    I’ve done something similar to this in a previous job except that it was from a web page. What I did is that the document was downloaded to the local computer from the web site and there was a new toolbar in word. For the new toolbar, I think it’s was with macro so the coding is in VBScript. I had a couple of buttons inside this toolbar to submit the document to the server and update the version in the database, save the document locally. In fact, since you can connect to database and use FSO in VBScript, you can do whatever you want including validating if the document is currently open by someone else, etc.

    It’s just a suggestion that is working. Maybe you can use a part of this solution and mix it with your own to find a satisfying result.

    Good luck

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a requirement to allow users to open word document from web page
I have the requirement that I need to open a document in Microsoft word
I have a requirement for within an ASP.Net application to open a Word template
I have a requirement to open a Microsoft Word document using Silverlight 3. The
I have requirement to develop DMS(Document Managemen System) with some initial requirements: If possible
I have requirement where I need to allow users to upload a Word document
I have a requirement to open a popup from an action method in controller.
I have a requirement for a project in an open source operating system, to
We have a requirement, in which we need to create dynamic word document and
I have a requirement where there is a URL = http://www.example/Open.pdf Now from my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.