For some reason I get a blank worksheet when I try and export a report using RDC and the report viewer. When I open the report using the Crystal Report Designer and export the reports it exports OK.
Any ideas. Heres the test code I'm using
Set MyApplication = CreateObject("CrystalRuntime.Application"
Set Myreport = MyApplication.OpenReport(App.Path & "\ErbiaAgedTrialBalance.rpt"
DoEvents
Myreport.Database.Tables(1).SetLogOnInfo "HEATH", "TestCPSErbia001", "SMG", "SMG"
Me.CRViewer1.ReportSource = Myreport
DoEvents
CRViewer1.EnableExportButton = True
CRViewer1.ViewReport
CRViewer1.EnableProgressControl = True
Any ideas. Heres the test code I'm using
Set MyApplication = CreateObject("CrystalRuntime.Application"
Set Myreport = MyApplication.OpenReport(App.Path & "\ErbiaAgedTrialBalance.rpt"
DoEvents
Myreport.Database.Tables(1).SetLogOnInfo "HEATH", "TestCPSErbia001", "SMG", "SMG"
Me.CRViewer1.ReportSource = Myreport
DoEvents
CRViewer1.EnableExportButton = True
CRViewer1.ViewReport
CRViewer1.EnableProgressControl = True