Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: Crystal Reports - Export as PDF to stream - The system cannot find the path specified

$
0
0

Hi,

 

After reviewing that thread I can see there is a workaround that may/may not impact performance, however this is the original approach I'm using and still experiencing the error.

 

As an alternative approach I've avoiding exporting to a stream all together and instead writing the file directly to the disk.

 

crystalReport.ExportToDisk(ExportFormatType.PortableDocFormat, documentFilePath);

However I still receive the same exception

System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.

 

 

   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.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)

This is only occurring on a production server. If I run this locally with the same version of the Crystal Reports runtime engine I do not experience this error (in both writing to a stream and a file).

 

Thanks,

Brent


Viewing all articles
Browse latest Browse all 8944

Trending Articles



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