CreateTable
function CreateTable(nCols: number = null, nRows: number = null): ApiTable
Description
Creates a new table with a specified number of rows and columns.
Parameters
- nCols
number
null Number of columns.
- nRows
number
null Number of rows.
Returns
ApiTable
Try It
var oDocument = Api.GetDocument();
var oTable = Api.CreateTable(3, 3);
oDocument.Push(oTable);
oTable.SetWidth("percent", 100);