ActiveReports3 Request technical support
ColumnCount Property
See Also  Example


Gets or sets a value that specifies the number of newspaper columns in the report.

Syntax

Visual Basic (Declaration) 
Public Property ColumnCount As Integer
Visual Basic (Usage)Copy Code
Dim instance As Detail
Dim value As Integer
 
instance.ColumnCount = value
 
value = instance.ColumnCount
C# 
public int ColumnCount {get; set;}

Return Value

Integer value that represents the current number of columns in the report; default is 1.

Example

C#Copy Code
private void detail_Format(object sender, System.EventArgs eArgs)
{
   
this.detail.ColumnCount = 1;
}
Visual BasicCopy Code
Private Sub Detail1_Format(ByVal sender As Object, ByVal e As System.EventArgs) Handles Detail1.Format
   Me.Detail.ColumnCount = 1
End Sub

Remarks

This property can be used to print labels or phonebook-style listings.  The width of each column equals the PrintWidth of the report divided by the number of columns.

See Also