CaptionStyle

[This is preliminary documentation and subject to change.]

The CaptionStyle property specifies a style to use for the table's caption. For more information about setting a caption for the table, see the Caption property.

Syntax

CaptionStyle = Value

Parameters

Value
A string that contains the caption style settings, for example, "ALIGN = Top".

Examples

The following example creates a table with the caption, "Hello, World!", below the table.
<%
  Set Conn = Server.CreateObject("ADODB.Connection")
  Conn.Open "ADOSamples"
  Set RS = Conn.Execute("SELECT * FROM Orders")
  
  Set myHtmlTable = Server.CreateObject("IISSample.HTMLTable") 
  myHtmlTable.Borders = True
  myHtmlTable.Caption = "Hello, World"
  myHtmlTable.CaptionStyle = "ALIGN=Bottom"
  myHtmlTable.AutoFormat(RS)
%>
 

Applies To

HTML Table Formatter Component

See Also

Caption