Skip to main content

Good afternoon, I'm struggling to translate from C # to Cobol. Can someone translate this?

             ReportDocument cryRpt = new ReportDocument ()
             cryRpt.Load ("C: \\ temp \\ rlfatemi.rpt")
             crystalReportViewer1.ReportSource = cryRpt
             crystalReportViewer1.Refresh ().

Good afternoon, I'm struggling to translate from C # to Cobol. Can someone translate this?

             ReportDocument cryRpt = new ReportDocument ()
             cryRpt.Load ("C: \\ temp \\ rlfatemi.rpt")
             crystalReportViewer1.ReportSource = cryRpt
             crystalReportViewer1.Refresh ().

Try this:

            declare cryRpt as type ReportDocument = new ReportDocument
            invoke cryRpt::Load ("C:\\temp\\rlfatemi.rpt")
            set crystalReportViewer1::ReportSource to cryRpt
            invoke crystalReportViewer1::Refresh