on 06-22-2010 3:31 PM
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
Hi,
Instead try it after installing all the pre-requisite softwares which you are doing with SAP 2007.
thanks:
Sandy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.