ComponentOne VSView 8.0
AddTableArray Method

Renders a variant array as a table with row headers and special formatting.

Syntax

[form!]VSPrinter.AddTableArray Format As String, Header As String, Body As Variant, [ HeaderShade As Variant ], [ BodyShade As Variant ], [ Append As Variant ]

Remarks

The AddTableArray method is similar to the AddTable method, except the data for the table body comes from a Variant array instead of being specified by a string.

All parameters are identical to those in the AddTable method, except for the Body parameter, which must be a two-dimensional array of Variants. The first array dimension contains the rows, and the second dimension contains the columns.

By default, the first table column (columns 1) is bound to the first array column (column 0) and so on. You may change this binding using the TableCell property with the tcColSource setting.

For examples of creating tables based on Variant arrays, see the VSPrinter Tutorial - Calendar topic and the Data-based Tables example.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback