This example shows how to set formula for a cell.
TextTables tables = document.getTables(); TextTable table = tables.item(1); TextTableCell cell = table.cell(2,1); cell.setFormula("=<C2>*<E2>");
Related information
Formula property