@carlosmc How to compare particular data with individual cells in the table. Kindly help me asap.
@Princeshivananjappa You can use Cell.ToString
method to get string value from the cell, then you can compare the resulting string value with another string value. The pseudocode will look like the following
Document doc = new Document(@"C:\Temp\in.docx");
// Get table
Table table = doc.FirstSection.Body.Tables[0];
// Get cell
Cell cell = table.FirstRow.Cells[0];
// Get cell value is a string.
string cellValue = cell.ToString(SaveFormat.Text).Trim();
// Compare value with another string value or parse string value if required.
if (cellValue == anotherStringValue)
{
// ................
}