Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8076

Exporting Crystal Reports to Excel in VS 2012

$
0
0

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




Viewing all articles
Browse latest Browse all 8076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>