qbd software ltd [UK]
qprinter > moth > qbd software
qPrinter² qcPrinter: Properties and Methods
Applies To:
qcPrinter
 
See Also:
qcDocument.CreateColumns
qcDocument.DocumentItems
 

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
lItemThe first DocumentItem in the Table
sColumnGapThe 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

©2002 qbd software ltd