To write the code in C

• Double-click on frmDesigner to see the code view for the Windows form. Add the following code to create the SetReport event.

The following example shows what the code for the method looks like:

[Visual Basic]

Public Sub SetReport(ByRef report As DataDynamics.ActiveReports.ActiveReport) Try m_rpt = report Catch ex As Exception

MessageBox.Show("Error: " + ex.Message + "\n" + "Stack:\n" + ex.StackTrace + ' End Try

public void SetReport(DataDynamics.ActiveReports.ActiveReport report) {

0 0

Post a comment