Visual Basic (Declaration) | |
---|---|
Public Property FormatString As System.String |
C# | |
---|---|
public System.string FormatString {get; set;} |
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.
C# | Copy Code |
---|---|
private void detail_Format(object sender, System.EventArgs eArgs) { this.reportInfo1.Font = New System.Drawing.Font("Arial", 10.0f); this.reportInfo1.FormatString = "Page {PageNumber} of {PageCount} on {RunDateTime}"; } |
Visual Basic | Copy 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.0f) Me.ReportInfo1.FormatString = "Page {PageNumber} of {PageCount} on {RunDateTime}" End Sub |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2