MartinDurant
Programmer
I am calling a report from my VB app using the RDC and the report is displayed before the data is ready despite looping while
frmReportViewer.form_load
What am I doing wrong? Any help greatly appreciated. Thanks.
Code:
CRViewer1.IsBusy[code] is true. I have to hit the refresh button until the data appears. The relevant bits of code are below:
[b]Print Button[/b]
[code]Set cReport = Appn.OpenReport("f:\vb code\cfs admin\MailLabel.rpt")
frmReportViewer.Show vbModeless
frmReportViewer.form_load
Code:
frmReportViewer.Caption = strReportName
cReport.DiscardSavedData
CRViewer1.ReportSource = cReport
CRViewer1.ViewReport
Label1.Caption = CRViewer1.IsBusy
While CRViewer1.IsBusy
DoEvents
Wend
CRViewer1.Refresh
What am I doing wrong? Any help greatly appreciated. Thanks.