GrapeCity.ActiveReports.v9 Assembly > GrapeCity.ActiveReports Namespace > SectionReport Class : AddCode Method |
'Declaration Public Sub AddCode( _ ByVal script As System.String _ )
public void AddCode( System.string script )
public string addThisCode() { string sCode = "public string ShowACMessage()\"{return \"my Added Code\";}"; return sCode; } private void rptAddCode_ReportStart(object sender, System.EventArgs eArgs) { this.AddCode(addThisCode()); }
Public Function addThisCode() As String Dim sCode As String = "public string ShowACMessage()""{return ""my Added Code"";}" Return sCode End Function Private Sub rptAddCode_ReportStart(sender As Object, eArgs As System.EventArgs) Me.AddCode(addThisCode()) End Sub