|
|
InsertRow
Method will create a row of TextBlocks based on Column
Templates created using the CreateColumns method, inserting the Text specified
in the CellText parameter. The Text will be formatted using the
formatting styles in the Template.
The LastRow parameter will set the last Cell's KeepWithNext
property to False.
Syntax Object.InsertRow
(Template As String, AppendKey As String, LastRow As Boolean, CellText() As
ParamArray)
| Parameters | | Template | The
key of the Templates to use. If Templates created using the CreateColumns
had the key 'Table', then each column Template would have a number after
it e.g.: 'Table1', 'Table2', 'Table3'. When using the InsertRow
method, the key should be the same as the name passed to the CreateColumns
routine. | | AppendKey | If
included the TextBlocks created by the method will have a Key in
the format:
[Template][Column #][AppendKey]. The TextBlocks can then be
accessed using the key from the DocumentItems collection. If
omitted, the TextBlocks will not include a Key. | | LastRow | Determines whether
the row should be kept with the next item. | | CellText() | A
ParamArray of Text values that should be inserted into the row. |
Notes The CellText() ParamArray
allows the Text to be included as a comma separated list at the end of the call
to the method:
InsertRow "Table1", "Row1", False, "Column 1
Text", "Column 2 Text", "Column 3 Text", "Column 4
Text" ... etc.
Example See: Invoice Example
qPrint.Document.CreateColumns 5, "tbHead", True, "Arial", 11, eCentre, 0, 0, _
ccrFirstRow, 0, 2, 5, 1, 2, 2
qPrint.Document.InsertRow "tbHead", "", False, "ID", "Description", "Qty", "Price", "Sub-Total"
See Also: qcDocument.CreateColumns,
qcPrinter.Table_BestFit, qcFormatBlock.ShowBorder, qcFormatBlock.KeepWithNext, qcFormatBlock.VAlignNextItem
|