|
Table_BestFit
Used to distribute the columns of a Table. The method measures all the cells in the table and calculates an appropriate column width based on the results.
Syntax Object.Table_BestFit (lItem As Long, sColumnGap As Single)
| Parameters | | lItem | The first DocumentItem in the Table | | sColumnGap | The gap between each column |
Return Value Integer
Notes 0: Operation was successful
-1: Item (lItem) was outside the range of DocumentItems
-2: Item was not the first item in a row
-3: The minimum width of all columns is greater than available page width.
Example qPrint.Table_BestFit 10, 2
See Also: qcDocument.CreateColumns, qcDocument.DocumentItems
|