Works on Development box. Windows 7 64bit.
Not working on Deployed Server 2012 R2 64bit
Crystal Reports version 13_0_13.
2015-06-08 11:21:25,692 [7] FATAL DecalPrintWCWindowsService.clsDecal [(null)] - CreateDecalPDF:
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.Export(ExportOptions options)
at DecalPrintWCWindowsService.clsDecal.CreateDecalPDF()
Code Snippet:
ReportDocument objCR_ReportDoc = new ReportDocument();
DiskFileDestinationOptions objDiskFileDestinationOptions;
ExportOptions objExportOptions;
objCR_ReportDoc.Load(sTemplatePath);
objDiskFileDestinationOptions = new DiskFileDestinationOptions();
objExportOptions = objCR_ReportDoc.ExportOptions;
objExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
objExportOptions.ExportFormatOptions = null;
objExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
objDiskFileDestinationOptions.DiskFileName = msPDFPath + PDFFileName;
WriteLine(msPDFPath + PDFFileName);
objExportOptions.ExportDestinationOptions = objDiskFileDestinationOptions;
objCR_ReportDoc.Export(objExportOptions);
objCR_ReportDoc.Dispose();
It is exploding (throwing exception) at the second to last line... objCR_ReportDoc.Export(objExportOptions);
I have been researching this issue for several days, tried most all suggestions from this site and others, to no avail.
Any thoughts?
John