Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Reports 8.5 Refresh Problem

Status
Not open for further replies.

MartinDurant

Programmer
Jan 25, 2002
41
GB
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
Code:
CRViewer1.IsBusy
is true. I have to hit the refresh button until the data appears. The relevant bits of code are below:

Print Button
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top