Automate Word - File In Use



Hi,
I'm attempting to automate word to load a document. I have no problem if
Word isn't loaded yet as creating a new Word.ApplicationClass() loads it for
me. However, there will be times when Word is already loaded and I want to
connect to that copy (and check whether the document is already loaded).

When Word is already loaded, creating a new Word.ApplicationClass() loads
another copy of Word and tries to load my document again. I then get an
error message telling me the file is in use.

I'm having some problems working out how to get the ApplicationClass if an
already running copy of Word... anyone know how I do that?

Thanks
Steve



.



Relevant Pages

  • Re: How to block a specific e-mail address?
    ... Steve: In point of fact, yes, the code that sends the message is ... contained in its own page, so if I load it up in a browser, a message ... Prev by Date: ...
    (comp.lang.php)
  • still get error 0x80072EFD after 6 months of tring to fix
    ... Is there an alternate site to down load xp update? ... Steve H ... Prev by Date: ...
    (microsoft.public.windowsupdate)
  • Re: loading and reading a csv
    ... > I have a CSV file that I need to load and read using PHP. ... Steve ... Prev by Date: ...
    (alt.php)
  • Re: Automate Word - File in Use error.
    ... > I'm attempting to automate word to load a document. ... > another copy of Word and tries to load my document again. ... You should connect to the running instance using Marshal.GetActiveObject. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Automate Word - File In Use
    ... > I'm attempting to automate word to load a document. ... > another copy of Word and tries to load my document again. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vc)