cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Crystal Report on SAP 8.8

Former Member
0 Kudos

Hi all!

I need to modify an addon developed for SAP2007 so that it works even on SAP 8.8. Now, i have an error when i try to show a report made with Crystal Report. I know that in SAP 8.8, Crystal Reports are seamlessly integrated in the core product. The addon source code that generates the error is as follows:

If File.Exists(sReportName) Then

Dim oeng As New SAPObjects.Engine

Dim f As New frmReportViewer(SBO_Application)

Dim rDoc As CrystalDecisions.CrystalReports.Engine.ReportDocument

rDoc = New CrystalDecisions.CrystalReports.Engine.ReportDocument()

rDoc.Load(sReportName)

rDoc.SetDataSource(dsReport)

f.VisualizzaReport(rDoc)

oeng.ShowDialogSapWindow(f)

End If

The error is returned when you try to initialize the object rDoc (The type initializer for 'CrystalDecisions.CrystalReports.Engine.ReportDocument' threw an exception).

I linked to the project the following references:

- CrystalDecisions.CrystalReports.Engine

- CrystalDecisions.Enterprise.Framework

- CrystalDecisions.Enterprise.InfoStore

- CrystalDecisions.ReportSource

- CrystalDecisions.Shared

- CrystalDecisions.Windows.Forms

Thanks.

Edited by: Gianluca D'Alessandro on Jun 22, 2010 5:00 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member209699
Contributor
0 Kudos

Hi,

Instead try it after installing all the pre-requisite softwares which you are doing with SAP 2007.

thanks:

Sandy