Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Exporting Crystal Reports to Excel in VS 2012

Hi,


In our web application developed in Visual Studio 2012, when I try to export crystal reports, I am getting the following error:

Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()'


It used to work fine in Visual Studio 2008, exporting to Pdf, Word & Excel.

It was also working fine exporting to Pdf & Word in the Visual Studio 2012 application using crystal reports 2008.

But it would not work for Excel.

So in an effort to get it working I installed Crystal Reports 2013 and downloaded the latest visual studio developer version (Support Pack 12) from this site:

SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads

(I've tried Support Pack 10 also).



My code is quiet straightforward, here is a shortened version of it:


Imports CrystalDecisions.CrystalReports.Engine

Imports CrystalDecisions.Shared

.

.

.

Dim Report As New ReportDocument

Report.Load(reportPath + reportName)

Report.FileName = reportPath + reportName

Report.Database.Tables(0).SetDataSource(dataTableName)

Dim oStream As New MemoryStream

oStream = CType(Report.ExportToStream(ExportFormatType.PortableDocFormat), MemoryStream)

On the last line above, it throws the following error:

Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()'



Any help on this issue would be appreciated.


Thanks,

John



Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question