Free Support Forum - aspose.com

Get Text from Cell

Hi,

Please tell me how to get text from a cell, either by moving to that cell [using movetocell] or by any other way...

Thank you,

Ali

Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. I think that you can use ToText method. Please see the following example:

string text = doc.FirstSection.Body.Tables[0].Rows[0].Cells[0].ToTxt();

Also see the following link for more information.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/extracting-text-only.html

Hope this helps.

Best regards.