Hi Quest,
I am using C#. I want to be able to read text in cells.
Getting text from Word is basically quite simple: Word.Range
range=document.Tables[1].Cell(1,1).Range; string text = range.Text;
Reading text from table cells is a bit tricky because a table cell's range
contains to extra characters at the end: Ansi 13 + Ansi 7 (=end-of-paragraph +
end-of-cell markers). What you need to do is trim these last two characters
off the string, using the string manipulation functions available in .NET,
once you've retrieved it.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail