Crystal Reports 4.6 and the notorious automation error -2147417848 The called object disconnected from its clients

I am upgrading a DAO application from 16-bit VB3 to 32-bit VB6 (yes, this is 2014, do not ask ..) Using the VB6 SP6 + Crystal Reports package shipped with VB6 (version 4.6).

The application has several forms that create reports. I had a Crystal Reports control for each form that generated reports.

In my Dev machine, which has all the correct OCX and DLLs for CryRpt, the reports worked sometimes, but I got the indicated error in this scenario:

  • Open form 1 and type something

  • Open form 2 and type something

  • Close Form 2

  • Return to Form 1, and when you try to print, you will receive a Disconnected item from your clients

  • If you reopen form 2 (or another form with the Crystal Reports control on it), form 1 may start printing again while the new form is open

  • In all of this, everything opens and closes that ultimately crashes with an unpleasant Windows error message (including the VB IDE).

All the best, Pedro

+4
source share
1 answer

I found a job that I would like to share if someone else comes across this.

, Crystal Reports 4.6 OCX . OCX . CR 4.6, , OCX DLL , OC OCX.

, , , , Crystal Reports OCX. , ; / , . :

  • "prntHndlr" ( , ) Crystal Reports Crystal Reports.

  • ( )

  • 1 (, "MyPrintReport" ) frmPrntHndlr ( RPT, , , ..)

, , prntHndlr.MyPrintReport(....). , OCX , , "" .

, .

, . ( ).

!

, ( Google), , .

, ,

,

+4

All Articles