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

Code Property (Report)
Gets or sets a string of code available to the report for use as a custom functions.
Syntax
'Declaration
 
Public Property Code As String
 

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