Skip to Content
0
Former Member
Nov 29, 2011 at 02:55 PM

System.Runtime.InteropServices.COMException (0x80004005):

875 Views

I am getting the following error with crystal reports within VS2010 C#:

System.Runtime.InteropServices.COMException (0x80004005): Invalid export type.

from this code which fails on the second line:

reportDocument.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;

reportDocument.Export();

The full error is:

System.Runtime.InteropServices.COMException (0x80004005): Invalid export type.

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 ....FrmEventLog.ButtonRunClick(Object sender, EventArgs e) in C:\....\FrmEventLog.cs:line 153