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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cystal Report viewer - Busy downloading data

Status
Not open for further replies.

Nro

Programmer
May 15, 2001
337
CA
Hi all

I'm using Crystal report 10 Report viewer control in a VFP 8.0 form

When I issue the frmCrtl.Show(), sometimes I receive an error

‘OLE IDispatch exception code 0 from CrystalReport10.ActivexReportViewer.1 : The control is busy downloading data...’

At first, I though it was an OLE error or Crystal, I searched KB for MS and Business Objects, but nothing very helpful.

I’m connecting thru OLE DB VFP provider (VFPOLEDB.DLL v. 8.0.0.3117) and I change the location of the data within the code.

At this point, the only solution I have is to trap the error and throw it away, but I don’t like this because when I receive the error, I lost the control over the VFP form and I have to click on one control of the viewer to continue. Innacceptable.

Thanks in advance

Nro
 

Nro,

I've not seen this particular error before, but in general, if you get weird things happening with this control, try switching dual-interface support off.

To do so, execute SYS(2333,1) just before the control is instantiated (e.g in the form's Load). Reverse the process by doing SYS(2333,0) in the Destroy.

Let us know if this works.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Thanks for the tip but I think I fixed the problem.

In the refresh method of the form containing the viewer, I had some code. I just remove it and it seems to work. So far so good.

Maybe there is a conflict when the two objects are refreshing. I don't know. Anyway, I’ll also try your suggestion Mike.

Thank again

Nro

 

Nro,

Maybe there is a conflict when the two objects are refreshing.

You might be right. I've certainly seen that conflict in other ActiveX controls. Sometimes in can be cured by putting NODEFAULT in the ActiveX's own Refresh.

Glad you've solved it.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top