Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 2556

getting a "path not found" error with this line rcd.PrintOutputController.Export(CrReportExportFormatEnum.crReportExportFormatPDF)

$
0
0

I have two test servers.  Both are running Windows 2012 with Crystal Reports 2012.

 

On the first server (which is working nicely), I has an ASP.net application which include Crystal Reports.  All the files for the IIS server are on the local D:\ drive.

 

On the second server, I copied the first server, and then moved the IIS files to a network share, and then configured IIS to use the network share.  I then took the Crystal Reports part of the application and put it back on the D:\ local drive.

 

Now in this code (same code on both servers), I have the following

 

             myBytes = New CrystalDecisions.ReportAppServer.CommonObjectModel.ByteArray

             myBytes = rcd.PrintOutputController.Export(CrReportExportFormatEnum.crReportExportFormatPDF)

 

On the first server, this works great,

 

On the second server, I get the following error message.

 

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

 

   at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.Export(CrReportExportFormatEnum exportFormat, Int32 Reserved)

   at clsCR2008.buildPDF(String expDir, String reportPath, String strServer, String strDatabase, String strUser, String strPassword, String strUserID)

 

 

Any suggestions on how to fix this problem?


Viewing all articles
Browse latest Browse all 2556

Trending Articles



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