Hi Alan,
Have just done a rather narrowly focused app but this may be of benefit to
you.
The app opens a word Doc and retrieves data out of the tables.
You need the OfficeXP PIAs that are compatible with the version of word docs
that you are using.
I am not an expert here, the copy I grabbed off the net produced Word
Object Library 10.0
apparently there is an 11.0 out there somewhere.
Anyway...
Reference the Microsoft Office Core and the Word library.
The object that gives you access to the text is the range object. Code
snippet shows opening a doc, getting references to the tables and picking up
one of the cells text.
HTH
Bob
word.Application mapp = new word.Application();
mapp.Visible = false;
object template = Type.Missing;
object newTemplate = Type.Missing;
object documentType = Type.Missing;
object optional = Type.Missing;
object visible = true;
object lTrue = true;
object lFalse = false;
object oDoc = sDoc;
word._Document doc2 = mapp.Documents.Open(ref oDoc, ref optional, ref lTrue,
ref lFalse, ref optional,
ref optional, ref optional, ref optional, ref optional,
ref optional, ref optional, ref lTrue, ref lFalse, ref optional, ref lTrue);
IEnumerator en = doc2.Tables.GetEnumerator();
word.Table t1;
word.Table t2;
word.Table t3;
en.MoveNext();
t1 = (word.Table)en.Current;
en.MoveNext();
t2 = (word.Table)en.Current;
en.MoveNext();
t3 = (word.Table)en.Current;
//Table1
myString= t1.Cell(1, 1).Range.Text;
"Alan T" <al*************@yahoo.com.auwrote in message
news:u0**************@TK2MSFTNGP05.phx.gbl...
>I recently programming Word application/document in CSharp but got several
problem.
Any pointer to get started?