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

Invalid export type

$
0
0

Dear All,

 

I am facing the issue with "Invalid export type" when i am trying to create a PDF by reading the elements

 

I am using the Crystal reports 2013 and  VS 2010 which is running in Windows 2008 R2 platform.

 

faollowing is the error shown :

 

System.Runtime.InteropServices.COMException{"Invalid export type."}System.Runtime.InteropServices.COMException

 

This is working fine when i do the same with VS 2003 and with CR 9.0.2

 

Following is the stack trace :

 

at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)

   at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)

   at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)

   at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)

   at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()

   at Sample.clsCrystalToPDFConverter.Transfer(String inscode, String enrolment_number, String withdependent

 

I am attching the code for your reference.

 

Since i am beginer to the world of CR please help me.

 

Advance thanks.


Viewing all articles
Browse latest Browse all 3523

Trending Articles



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