
loading more than 1 crystal report cause a run time error
Quote:
> hi ..
> i'm using VB5 .. a problem occured to me as follows :
> i used a form which loads one of 4 crystal reports based on the user's
> choose .. he can open one for viewing (printing to screen ) and close the
> form and this was well .. but when he opens more than one report after
> eachother ( close one and open the other ) and then close the form .. a
> VB run time error occures .. i reviewed the code .. Is this a bug in VB ?
> adn if so .. does it has a patch ?? or there is another way to overcome
> this ?
> thans very much for reading this .. and i'll be more thankfull if one
> replied me with an answer ..
> thans again
Hi,
I had the same problem. This is a heavy bug in Crystal Reports!
Just put one single Crystal OCX on your form and set its properties at
runtime before opening it depending on the user selection.
This works fine for me. Hope it helps you too...
Hannes B.