ActiveReports6 Assembly > DataDynamics.ActiveReports Namespace > ActiveReport Class : AddCode Method |
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 Function ShowACMessage() As String" _ + Environment.NewLine + "ShowACMessage = ""my Added Code""" _ + Environment.NewLine + "End Function" addThisCode = sCode End Function Private Sub rptAddCode_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart Me.AddCode(addThisCode()) 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