Skip to Content
avatar image
Former Member

Problem Crystal Report on SAP 8.8

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 23, 2010 at 08:09 AM

    Hi,

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

    thanks:

    Sandy

    Add comment
    10|10000 characters needed characters exceeded