Skip to main content

I need to translate it

  • August 26, 2015
  • 1 reply
  • 0 views

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 ().

1 reply

Chris Glazier
Forum|alt.badge.img+2

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