Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export Error Message in .NET 1

Status
Not open for further replies.

wakthar

Programmer
Jul 27, 2007
14
GB
I have a report which needs to be run via a webpage. I have used the export sample that comes with the crystal reports developers guide (CS_Web_RDObjMod_Export) as a basis to write my own export functions.
The problem I am having is intermittent. By that I mean I can export to several format types without getting any errors but once I get the error message, I have to stop, close the browse and start again.
The error message I get is the following in .NET:

"CrystalDecisions.CrystalReports.Engine.InvalidArgumentException:
Error in File C:\\DOCUME~1\\DEVELO~1\\ASPNET\\LOCALS~1\\Temp\\{BE3045C4-8D58-43CD-B80E-F1E29FB2DCA1}.rpt:\nInvalid export DLL or export format. ---> System.Runtime.InteropServices.COMException (0x800002B4):
Error in File C:\\DOCUME~1\\DEVELO~1\\ASPNET\\LOCALS~1\\Temp\\{BE3045C4-8D58-43CD-B80E-F1E29FB2DCA1}.rpt:\nInvalid export DLL or export format.
at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
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 PurchaseLedger.ContractExposureReport.ConfigureCrystalReports() in c:\\inetpub\\ 88"
 
Hi,
This part:

Invalid export DLL or export format.

Usually indicates that, for whatever export type you havespecified, there is not a DLL registered for that format..
Did you install ALL the export format options when installing Crystal? Are you trying to export to one not listed?



[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Thanks for that.
I realised this when I tried to export from Crystal Reports itself to csv. Crystal Reports needed to install some extra bits and pieces and now everything works as expected.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top