Skip to Content
avatar image
Former Member

Question about the ReplaceConnection_click event

In the ReplaceConnection_Click event there is a reference to a variable named

rptClientDoc. The code does not compile because it is not referenced anywhere. How is this variable initialized?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Aug 09, 2017 at 10:40 PM

    It's referenced in a few places but globally in the form load event:

    public class frmMain : System.Windows.Forms.Form
    {
    CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
    CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;

    Don

    Add comment
    10|10000 characters needed characters exceeded