andrewwatson
Programmer
I’ve got a MDI Child form with a Crystal OCX (v4.6) on.
I run multiple reports in this using a form array:
Dim frmReport1 As New frmReportForm
frmReport1.rptCrystal.PrintReport
frmReport1.Show
...etc
When I close the first form in the array, no problem. When I try to close the second, VB shuts down (no error, no GPF, it just shuts down without warning!)
Is there any way round this (other than storing the OCX on a different form from the one I’m using to display the results)?
I run multiple reports in this using a form array:
Dim frmReport1 As New frmReportForm
frmReport1.rptCrystal.PrintReport
frmReport1.Show
...etc
When I close the first form in the array, no problem. When I try to close the second, VB shuts down (no error, no GPF, it just shuts down without warning!)
Is there any way round this (other than storing the OCX on a different form from the one I’m using to display the results)?