I'm completely new to the concept of working with Office documents on C#, but I found this code on a different site and am using it as follows:
object oMissing = System.Reflection.Missing.Value;
object oEndOfDoc = "\\endofdoc"; /* \endofdoc is a predefined bookmark */
object oPath = "path goes here";
//Start Word and create a new document.
Word._Application oWord;
Word._Document oDoc;
oWord = new Word.Application();
oWord.Visible = false;
oDoc = oWord.Documents.Open(ref oPath, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing,
ref oMissing, ref oMissing, ref oMissing, ref oMissing);
At this point, I can apparently access what's inside the document by calling it from the oDoc variable. Is there a way I can do this without actually opening up the document?
EDIT: Just read this other topic: http://www.thescripts.com/forum/thread234822.html
Is copying/pasting the only way to get the information out of Word and onto another application?