Theory Question on Accessing Data from A Running Instance of Word

  • Thread starter Thread starter Scott C. Reynolds
  • Start date Start date
S

Scott C. Reynolds

Okay, say you have a running instance of Word, likely a temporary (as
yet unsaved) document, and another piece of software is putting data
into this document.

Now imagine you need to grab said data for your own app to do some stuff
with. Where would I begin to delve into how to do such a thing?

Thanks.

Scott.
 
Hi Scott.
I don't think I get exactly what do you want but let me tell you what I
think it is . you mean you need to grab some data form the word ( data
might not be saved yet ) and use it from your own application .
Well , this unsaved data will exist only in Ram ( not yet saved to disk )
so they belong to some application running ( the word application domain )
so what you would want to do is from your application domain access memory
of another application which doesn't sound like a normal activity to be
allowed by the OS . whoever, if this instance that has the modified data
belong to your AppDomain . then there should be no problem since you are
accessing the ram copy anyway .
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Yes, that is basically what I am trying to do.

I was wondering if maybe there were a "temp file" I could interact with,
or maybe the in-memory copy of word, to allow me to do some word
automation or something to get the data.

Or, alternatively, to grab the data as it gets put into the document?


Scott C. Reynolds
Tales from the SharpSide
http://www.scottcreynolds.com
 
Back
Top