ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.PageReportModel Namespace / Report Class / Code Property
Example

In This Topic
    Code Property (Report)
    In This Topic
    Gets or sets a string of code available to the report for use as a custom functions.
    Syntax
    'Declaration
     
    Public Property Code As String
    public string Code {get; set;}

    Property Value

    A System.String value containing the custom functions.
    Remarks

    The custom functions contained in the string must be instance methods written in Visual Basic.NET syntax.

    See the "Custom Code" topic in the User Guide for more information.

    Example
    Report report = new Report();
    report.Code = "Public Function CustomFunction() As String Return \"Hello\" End Function";
    See Also