I need to extract text (using C#, VS2012) from opened word document. I keep receiving an error that 'cannot access file, because it is being used by another process'. Is there any work around this? So I can extract text programmatically when document is opened in Microsoft Word?
If you cannot open the document programmatically, I would connect to the running instance of Word, get a handle to the document, and ask for the text in it. Like this:
Remember to reference the Word Interop assembly.