Problem with VB5-Crystal Report 6.0 Object Library(cpeaut32.dll) 
Author Message
 Problem with VB5-Crystal Report 6.0 Object Library(cpeaut32.dll)

Hi,
 I have developed a VB project which references the Crystal Report
Engine 6.0 Object Library: cpeaut32.dll. In this project, we declare
app1 as a crpeauto.Application and repobj as a crpeauto.Report.
 The reports are built on data definition files to which a RDO Resultset
is passed at the runtime, using the setprivatedata method of Report
Object. The Report is then exported to the local hard disk after which I
set both  app1 and repobj to nothing. This report generation process is
part of the sub-routine which is called repetitively in the program.
Now, this sub routine works fine for up to about 30 invocations but
after that VB5.exe crashes. The message box that appears is:

--------------------------------------------------
Microsoft Visual C++ Library
Runtime Error!

C:\~\VB5.exe
Abnormal Program Termination
--------------------------------------------------

Please note that there is no error number displayed in the message box.

The code for your perusal is as follows:
********************************************************************************************************************************

' declaring variables app1 and rep1

Dim App1 As crpeauto.Application
Dim repObj As New crpeauto.Report

Set App1 = New crpeauto.Application
Set repObj = App1.OpenReport(NameOfReportFile) **##

Set reportDb = repObj.Database
Set reportTables = reportDb.Tables
Set reportTable = reportTables.Item(1)

reportTable.SetPrivateData 3, RDOrs1

Set crystalExportOptions = repObj.ExportOptions
    crystalExportOptions.DiskFileName = Filename
    crystalExportOptions.UseReportDateFormat = True
    crystalExportOptions.FormatType = 1
    crystalExportOptions.UseReportNumberFormat = True
    crystalExportOptions.DestinationType = 1
Call repObj.Export(False)

Set repObj = Nothing
Set App1 = Nothing

**## The program bombs on this line.

********************************************************************************************************************************

The number 30, as the times of invocation of the stored procedure is not
a fixed number but keeps varying time to time and so probably could be
some memory management problem with VB5.

Please advice on the same at the earliest possible.

Regards,
Navendu

  vcard.vcf
< 1K Download


Fri, 12 Jan 2001 03:00:00 GMT  
 Problem with VB5-Crystal Report 6.0 Object Library(cpeaut32.dll)
Hi,
 I have developed a VB project which references the Crystal Report
Engine 6.0 Object Library: cpeaut32.dll. In this project, we declare
app1 as a crpeauto.Application and repobj as a crpeauto.Report.
 The reports are built on data definition files to which a RDO Resultset
is passed at the runtime, using the setprivatedata method of Report
Object. The Report is then exported to the local hard disk after which I
set both  app1 and repobj to nothing. This report generation process is
part of the sub-routine which is called repetitively in the program.
Now, this sub routine works fine for up to about 30 invocations but
after that VB5.exe crashes. The message box that appears is:

--------------------------------------------------
Microsoft Visual C++ Library
Runtime Error!

C:\~\VB5.exe
Abnormal Program Termination
--------------------------------------------------

Please note that there is no error number displayed in the message box.

The code for your perusal is as follows:
********************************************************************************************************************************

' declaring variables app1 and rep1

Dim App1 As crpeauto.Application
Dim repObj As New crpeauto.Report

Set App1 = New crpeauto.Application
Set repObj = App1.OpenReport(NameOfReportFile) **##

Set reportDb = repObj.Database
Set reportTables = reportDb.Tables
Set reportTable = reportTables.Item(1)

reportTable.SetPrivateData 3, RDOrs1

Set crystalExportOptions = repObj.ExportOptions
    crystalExportOptions.DiskFileName = Filename
    crystalExportOptions.UseReportDateFormat = True
    crystalExportOptions.FormatType = 1
    crystalExportOptions.UseReportNumberFormat = True
    crystalExportOptions.DestinationType = 1
Call repObj.Export(False)

Set repObj = Nothing
Set App1 = Nothing

**## The program bombs on this line.

********************************************************************************************************************************

The number 30, as the times of invocation of the stored procedure is not
a fixed number but keeps varying time to time and so probably could be
some memory management problem with VB5.

Please advice on the same at the earliest possible.

Regards,
Navendu



Fri, 12 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problem with VB5-Crystal Report 6.0 Object Library(cpeaut32.dll)

2. problems with seagate crystal report 6.0(crviewer.dll) and vb5

3. Crystal Reports ANd VB 6.0 Printing reports using CRPEAUTO Object, specifying paper orientation problem

4. missing library p2qqbe.dll crystal reports 3 to crystal reports 5

5. cpeaut32 error: ActiveX automation and Crystal Reports 7.0

6. Crystal Report 7 ActiveX (craxdrt.dll) vs Crystal Report Engine (CPEAUTO.dll)

7. Crystal Report 4.6 in Crystal Report 6.0

8. Crystal Report Engine 8 Object Library

9. Crystal Report Engine 8 Object Library QUESTION

10. Error when upgrading from vb5 to vb6 with Crystal Reports 6.0

11. Can't Add Crystal Reports 6.0 designer to Existing VB5 Project

12. Crystal Reports 6.0 missing pdbbde.dll

 

 
Powered by phpBB® Forum Software