ComponentOne VSView 8.0
Table Property

Renders a table on the page.

Syntax

[form!]VSPrinter.Table = value As String

Remarks

The string assigned to the Table property is divided into rows and columns by special characters defined through the TableSep property. By default, rows are separated by semi-colons (";") and columns by column pipes ("|").

The first row contains formatting information only and is not printed. The formatting information consists of sequences of formatting characters (one sequence for each column) followed by a column width. For a description of the format string, see the AddTable method.

For example, the following code prints a table with five rows and four columns:

sFmt$  = "+^1440|+^1050|+^2000|+=4000;"

sBody$ = "Last|First|Instrument|Favorite;" & _

         "Page|James Patrick|Guitar|Stairway to Heaven;" & _

         "Plant|Robert|Vocals|Going to California;" & _

         "Jones|John Paul|Bass, Keyboards|The Lemon Song;" & _

         "Bonham|John Bonzo|Drums|Rock & Roll, The Rover;"

vp.Table = sFmt & sBody

Note: This property is provided for compatibility with old projects. New projects should use the AddTable method instead. AddTable provides a clearer syntax and more powerful formatting options. For even more formatting options, see also the StartTable and EndTable methods and the TableCell property.

Data Type

String

 

 


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

Product Support Forum  |  Documentation Feedback