ActiveReports3 Request technical support
FormatString Property
See Also  Example


Gets or sets the mask string used to format the text property before placing it in the Text property.

Syntax

Visual Basic (Declaration) 
Public Property FormatString As String
Visual Basic (Usage)Copy Code
Dim instance As ReportInfo
Dim value As String
 
instance.FormatString = value
 
value = instance.FormatString
C# 
public string FormatString {get; set;}

Example

C#Copy Code
private void detail_Format(object sender, System.EventArgs eArgs)
{
   
this.reportInfo1.Font = New System.Drawing.Font("Arial", 10.0!)
   
this.reportInfo1.FormatString = "Page {PageNumber} of {PageCount} on {RunDateTime}"
}
Visual BasicCopy Code
Private Sub Detail1_Format(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Detail1.Format
    Me.ReportInfo1.Font = New System.Drawing.Font("Arial", 10.0!)
    Me.ReportInfo1.FormatString = "Page {PageNumber} of {PageCount} on {RunDateTime}"
End Sub

Remarks

The formatting mask can only be used to format numbers and dates.  There is no support for formatting alphanumeric strings. The ReportInfo control will display variations of report Page and RunDateTime information.

See Also