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 3237458
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:44:28+00:00 2026-05-17T17:44:28+00:00

i am creating a word (14) instance with interop out of a c# .net4

  • 0

i am creating a word (14) instance with interop out of a c# .net4 winforms application to work with a document. If some word document gets opened beyond my application the same word instance will be used an disturbs my application.

Simple question: Is there any way to set my word instance exclusive for my application?

Thanks in advance.

Btw: Found some stuff with exclusive/word/office/isolated/block/instance but no answers anyhow.

  • 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-17T17:44:28+00:00Added an answer on May 17, 2026 at 5:44 pm

    There’s sort of a solution, but it’s not pretty.
    The main issue is that Word registers itself in the ROT (Running Object Table), and other applications can then easily get access to the instance of Word registered in the ROT (that’s what the VB GetObject function does for instance).

    So, in your app, you’d basically have to do 2 things

    1. Try to GetObject (ie query the ROT for a running instance)
    2. If you get one, you know you HAVE to create a new instance of Word to use (CreateObject in VB, the process is different in other langs).
    3. If you DON’T get one, you have to create 2 new instances of Word. The first will automatically register itself in the ROT, the second won’t. Use the second instance, and quite the first instance.

    Even though you terminate that first instance, It won’t “retroactively” register itself in the ROT, and other applications will generally not object a reference to it to use, they’ll automatically create a new instance, which, since no other instance is registered in the ROT anymore, will then get registered.

    That said, it is still possible for other apps to get at your instance of Word, so this technique isn’t bulletproof. How? Because Word ALSO registers each loaded DOCUMENT in the ROT. But that’s a pretty seldom used feature.

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

Sidebar

Related Questions

I'm creating a Word 2010 document using C# and Microsoft.Office.Interop.Word . Using the Range.Paste
I'm creating a new instance of Word using the Office interop by doing this:
Using .NET and the Word Interop I am programmatically creating a new Word doc
I am creating a word document with plain text content controls. I have added
I am creating a MS Word document entirely through C# in VS 2008. I
I'm creating a word document programatically using VBA. 1) I have a a string
I'm working on creating a macro in Microsoft Word (2007) for a document that
I'm creating word documents from templates (.dot) via Microsoft.Office.Interop.Word . The code below works
I'm currently creating a Word document by generating HTML and changing the header information
I'm creating a word document using mailmerge in word 2010 and I've got a

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.