ActiveReports 6 Online Help
DefaultValue Property (Field)
Example 

Gets or sets the user-defined default value of the field, which is used if the formula or value is null.
Syntax
'Declaration
 
Public Property DefaultValue As String
public string DefaultValue {get; set;}
Example
private void rptCalFields_ReportStart(object sender, System.EventArgs e)
{
    this.field1.DefaultValue = "\"Does not compute\"";
    this.field1.FieldType = DataDynamics.ActiveReports.FieldTypeEnum.None;
    this.field1.Formula = "ProductName + UnitPrice";
    this.field1.Name = "field1";
    this.field1.Tag = null;
}
Private Sub rptCalFields_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs)
   Me.field1.DefaultValue = """Does not compute"""
   Me.field1.FieldType = DataDynamics.ActiveReports.FieldTypeEnum.None
   Me.field1.Formula = "ProductName + UnitPrice"
   Me.field1.Name = "field1"
   Me.field1.Tag = Nothing
End Sub
Requirements

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

See Also

Reference

Field Class
Field Members

Send Feedback