Autofit is not a member of aspose.words.tables.table

this code fails to comppile at 'cell.ParentRow.ParentTable.SetBorder' with setborder is not a member of aspose.words.tables.table.

But if you remove the line the codecompiles and executes

Regards

Gordon

' Iterate through all tables in the document
Dim tables As NodeCollection = m_Doc.GetChildNodes(NodeType.Table, True)

For Each tbl As Table In tables

For Each cell As Cell In tbl.Rows(0).Cells
If cell.GetText.Contains("If paying by debit or credit card") Then

cell.ParentRow.ParentTable.SetBorder(BorderType.Left, LineStyle.Single, 1.5, Color.Green, True


End If
Next cell
Next
' Iterate through all tables in the document
Dim tables As NodeCollection = m_Doc.GetChildNodes(NodeType.Table, True)

For Each tbl As Table In tables

For Each cell As Cell In tbl.Rows(0).Cells
If cell.GetText.Contains("If paying by debit or credit card") Then

cell.ParentRow.ParentTable.SetBorder(BorderType.Left, LineStyle.Single, 1.5, Color.Green, True


End If
Next cell
Next

Hi Gordon,


Thanks for your inquiry. Could you please attach your input documents here for testing? I will investigate the issue on my side and provide you more information.

Moreover, please note that new versions of Aspose.Words come out at the end of every month. I would suggest you to please download and use the latest version of Aspose.Words i.e. 10.6.0 from the following link and hopefully it should resolve the issue then:
http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx

Best Regards,

Thanks updating the release has fixed it.