Crystal Report - Export; The system cannot find the path specified

We are trying to export a reports using the crystal report sdk either export to disk or export to stream. While doing the export
we are getting the following error
   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)
Any help would be appreciated much

Try searching and you'll find lots of info on this subject. Look for most recent posts.
Error suggests you are exporting to a folder that does not exist or you do not have permission to write to.
Don

Similar Messages

  • Hi Expert , crystal report export problem. system not responding

    Hi,
    crystal report export problem. system not responding.
    Thanks
    Rajkumar Gupta

    Dear Raj,
    Please try this
              Try
                Dim oSubReport As CrystalDecisions.CrystalReports.Engine.SubreportObject
                Dim rptSubReportDoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
                Dim rptView As New CrystalDecisions.Windows.Forms.CrystalReportViewer
                Dim rptPath As String = System.Windows.Forms.Application.StartupPath & "\" & rptName
                Dim rptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
                rptDoc.Load(rptPath)
                rptView.ShowExportButton = True
                rptView.ReportSource = rptDoc
                For Each oMainReportTable As CrystalDecisions.CrystalReports.Engine.Table In rptDoc.Database.Tables
                    oMainReportTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
                Next
                For Each rptSection As CrystalDecisions.CrystalReports.Engine.Section In rptDoc.ReportDefinition.Sections
                    For Each rptObject As CrystalDecisions.CrystalReports.Engine.ReportObject In rptSection.ReportObjects
                        If rptObject.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
                            oSubReport = rptObject
                            rptSubReportDoc = oSubReport.OpenSubreport(oSubReport.SubreportName)
                            For Each oSubTable As CrystalDecisions.CrystalReports.Engine.Table In rptSubReportDoc.Database.Tables
                                oSubTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
                            Next
                        End If
                    Next
                Next
                'Setting Paper
                Dim rawKind As Integer = 0
                Dim printSet As New System.Drawing.Printing.PrinterSettings
                For i As Integer = 0 To printSet.PaperSizes.Count - 1
                    If printSet.PaperSizes.Item(i).PaperName.ToUpper = PaperName.ToUpper Then
                        rawKind = CInt(printSet.PaperSizes.Item(i).RawKind)
                        Exit For
                    End If
                Next
                Dim MyTest As New SaveFileDialog
                rptDoc.PrintOptions.PaperSize = CType(rawKind, CrystalDecisions.Shared.PaperSize)
                rptDoc.ExportToStream(ExportFormatType.Excel)
                'rptDoc.SaveAs("C:\TBKING.xls", True)
                '''How to export the report
                Try
                    Dim CrExportOptions As ExportOptions
                    Dim CrDiskFileDestinationOptions As New _
                    DiskFileDestinationOptions()
                    Dim rename As String
                    rename = rptName.Replace(".rpt", "")
                    Dim CrFormatTypeOptions As New ExcelFormatOptions
                    CrDiskFileDestinationOptions.DiskFileName = _
                                                "c:\Report\" & rename & "_Export_File.xls"
                    CrExportOptions = rptDoc.ExportOptions
                    With CrExportOptions
                        .ExportDestinationType = ExportDestinationType.DiskFile
                        .ExportFormatType = ExportFormatType.Excel
                        .DestinationOptions = CrDiskFileDestinationOptions
                        .FormatOptions = CrFormatTypeOptions
                    End With
                    rptDoc.Export()
                Catch ex As Exception
                    MsgBox(ex.ToString)
                End Try
                '' end by kevin shah
                rptView.Show()
                rptView.ShowExportButton = True
                Dim oFrm As New System.Windows.Forms.Form
                rptView.DisplayGroupTree = True
                rptView.Dock = System.Windows.Forms.DockStyle.Fill
                rptView.Location = New System.Drawing.Point(0, 0)
                oFrm.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
                oFrm.Controls.Add(rptView)
                oFrm.Name = "Report Viewer"
                oFrm.Text = "Report Viewer11"
                oFrm.ResumeLayout(True)
                oFrm.WindowState = System.Windows.Forms.FormWindowState.Maximized
                oFrm.TopMost = True
                oFrm.ShowDialog()
            Catch ex As Exception
                objMain.objApplication.MessageBox(ex.Message)
            End Try
    By pressing this button XLS file be generated on C:\report\
    Hope this will resolved the issue
    Thanks
    Kevin

  • Load report Failed, COMExpection: System cannot find the path specified

    Interesting problem:
    I have an application that runs on a web server (currently running it as simple test application to make solving this easier). We use a BO XI report to load data from the DB via a stored proc, then run an ExportToStream to get CSV data to return to the caller.
    It all works well as long as I run the application under the NT Account logged into the Box (W2k3, R2). But when using a different account (it's a domain admin account), it fails with the following error:
    System.Exception: Load report Failed. ---> System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.
    at CrystalDecisions.ReportAppServer.ClienDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
    at CyrstalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod).
    The report is located on a file drive the openMethod is OpenReportByTempCopy. The Temp directory for the user (landes) exists on the box, all things seem to be in place.
    Anybody know that path is specified and how to overcome this?
    Thanks

    Will it be possible to check this registry key: HKEY_LOCAL_MACINE\SOFTWARE\Suite 11or11.5\Report Application Server\InprocServer\LocalConnectionMgr and verify if the ConnectionDirectoryPath is set to something like C:\ ?
    If not, set to C:\ and see how it goes after running your app.
    Cheers
    Alphonse

  • Load Report Failed : The System cannot find the path specified

    Hi,
    I have a .Net windows application and I'm using crystal report in that. Application is published in CITRIX. If I login as Administrator user, reports are generating fine.
    But for any other user i'm getting following error while trying to open crystal report
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    Exception Text **************
    CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException (0x80004005): The system cannot find the path specified.
       at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
       at castlegate.frmFormB.frmFormB_Load(Object sender, EventArgs e) in C:\MyFolder\My Projects\castlegate_with_setup\castlegate\frmFormB.vb:line 401
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
       at System.Windows.Forms.Control.set_Visible(Boolean value)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.RunDialog(Form form)
       at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
       at System.Windows.Forms.Form.ShowDialog()
       at castlegate.frmViewEnquiry.btnPrint_Click(Object sender, EventArgs e) in C:\MyFolder\My Projects\castlegate_with_setup\castlegate\frmViewEnquiry.vb:line 340
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Expecting solution to above issue
    Regards
    NistPS

    Hi,
    See the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/Rules%20of%20Engagement]
    What version of Crystal Reports are you using?
    Visual studio version you have?
    Have you applied any servcie pack?
    Is this on your development computer or on a deployed computer?
    If on a deployed system, how was the CR runtime installed to that system?
    Regards,
    Shweta

  • Exporting ReportDocument fills up memory, then throws "The system cannot find the file specified"

    Hi,
    When exporting a perfectly viable ReportDocument to pdf like this:
    Dim ms As IO.MemoryStream = New System.IO.MemoryStream
    ms = rpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat)
    (rpt being the ReportDocument), the process starts to fill up memory at a couple of megabytes per second rate, and eventually throws Exception:
    "The system cannot find the path specified."
    stacktrace:
       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.ReportDocument.ExportToStream(ExportOptions options)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)
       at {the ExportToStream invocation in my own code}
    The same thing happens when I invoke the regular Export() method with any DiskFileName.
    My environment is VS 2012 (premium) and I'm using CRforVS_13_0_13 (32-bit version). The programming language is VB.NET.
    A similar problem seems to be discussed here: CR2008 - "The system cannot find the path specified", but the difference is there's no errors in my formula's. The report gets displayed and printed out fine. It's just the exporting that does not work. Any ideas about how to fix this?
    Thanks,
    Stefan

    See Don Williams response here:  http://scn.sap.com/thread/3713889
    You cannot export using MemoryStream - you have to use IOStream.
    -Dell

  • Crystal Designer - System cannot find the file specified

    Hi
    I have only just installed Crystal Reports for SAP Business One. I followed the eLearing installation guide and the installation seemed to go fine. However, when i run Crystal Designer i get the following message:
    The system cannot find the file specified.
    Can anyone tell me why this is?
    Many thanks
    Martyn
    Edited by: Martyn Brown on Mar 2, 2009 6:27 PM

    Dear Mike,
    Thanks for the solution. I am the only user who want to develop and view the reports. and I installed CR following the guidelines as per SAP. And I think I installed the full product.
    Can you guide me how to install full product. And lasly there was a point in installation guide numvbered 17 which I could not understand.
    17.
    If the Crystal Designer has been installed on the local PC, the following file needs to be edited ( or checked to be correct). The file gives the path to the Crystal Reports Designer exe. The add-on will read this file to launch Crystal Designer.
    C:\Program Files\SAP\SAP Business One\AddOns\SAP_CR\Resources\CrystalDesignerPath.txt
    I gave the path of crystal reports designer exe in this file but of no use.
    Need your guidance.
    Thanking you in anticipation
    Regards,

  • I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a H

    I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a HP ENVY Phoenix, fully loaded, 1 1/2 years old.

    Nevermind I fixed it. Thank you.

  • LMS 4.2.4 User Tracking End Host Report The system cannot find the path specified

    Hello at all,
    I have a problem when creating a scheduled User Tracking End Host Report.
    I always get the message "The system cannot find the path specified" and the job fails.
    An immediate report is successful.
    I tried to change the "Report Publish Path" from "C:/Program Files (x86)/CSCOpx/" to "C:/PROGRA~2/CSCOpx/", but that did'nt worked.
    Has anybody an idea?
    Regards, Kerstin

    Share the screenshot of the following directory :
    NMSROOT\CSCOpx\campus\etc\cwsi
    In case it is blank, try following :
    1.Stop the services : net stop crmdmgtd 
    2.Take a copy of > C:/Progra~2/campus/etc/users and place it under C:/Progra~2/campus/etc/cwsi
    3.Start the services : net start crmdmgtd
    Please try and let me know the updates.
    -Thanks
    Vinod
    **Encourage Contributors. RATE them.**

  • "The system cannot find the path specified" error

    Hi, Thanks for taking the time and reading.
    I had to update an old report that was made in CrystalReports. I copied the rpt files and pasted them into a csharp solution in VS 2010.
    The report structure is of a Main report and 6 subreports. I have to run this Main report many times and feed it a different integer as a parameter.
    I can preview the report in report viewer perfectly. When i try to export the main report into a pdf format
    i get an exception. I have tried a few different formats and it spews the same error. 
    Oddly enough the export sometimes works if the report i am previewing has the "Save data in the report" check box checked. My guess is that this is cached. Also when i run just the subreports through my application, it works.
    Things i have tried:
      I installed: CRRuntime_64bit_13_0_13
      I installed: CRforVS_13_0_13
      Took a look at the Procmon and i could not find an access denied error
      Event Viewer has no detail.
      Changed Registry values of ConnectionDirectoryPath and ReportDirectoryPath to "c:\"
    Code:
      if (!Directory.Exists(filePath))
      Directory.CreateDirectory(filePath);
      string fileName = filePath + string.Format(GlobalVaraiables.FILE_SAVE_NAME, i);
      cryRpt.SetParameterValue(GlobalVaraiables.FUND_DATA_KEY_PARAMETER, i.ToString());
      cryRpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, fileName);
    Error message:
      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)
        at FundDataPDFSaver.SaveReport.GenerateReports(List`1 l) in C:\Users\user.name.here\Documents\Visual Studio 2010\Projects\FundDataToPDF\FundDataPDFSaver\SaveReport.cs:line 74
    System Details:
    Windows 7 Enterprise N  64 bit
    ServicePack 1
    IDE:
    Visual studio 2010 .Net framework 4
    Application is set to run as "Any CPU"
    CrystalReports :
      dll's: C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.CrystalReports.Engine.dll
        C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.ReportSource.dll
        C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet\CrystalDecisions.Shared.dll
    Thanks for your help

    I don't see where you're ever setting the logons for the tables in the report and subreports.  The reports with saved data are working because they already have data in them.  The reports without saved data are not working because they don't know how to connect to the database.
    See the Database section here Crystal Reports for .NET SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki for more information about how to set the logons.
    -Dell

  • The system cannot find the path specified.---- Error code:-2147467259 Error code name:failed

    Friends,
                I'm facing below issue while accessing a crystal report. I heard it might be an access issue. But i'm able to access a report within a same folder.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException : The system cannot find the path specified.---- Error code:-2147467259 Error code name:failed
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    Any suggestions would be very helpful.
    Thanks in Advance,
    Bharath

    Apply trace on RAS and look for errors in the RAS logs at the same timestamp.
    These errors come for various errors and tracing RAS would give us a better idea.
    It might hapen that you observe these errors for reports which takes more than the RAS timeout to export the reports.
    Post getting the RAS logs you can try below steps if we see timeout errors in RAS logs.
    Copy clientSDKOptions.xml file from <BO install path>\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib to the machine where your app is running Open clientSDKOptions.xml and change CORBARequestTimeOut from 600000 to a value large enough to allow the report to render, for instance 1200000. Default value is 600000 (10 minutes)
    Specify the location of the clientSDKOptions.xml file at run-time. In your JSP or Java files, use the Java method setProperty from the System class. Set the system property indicated by the ras.config key to the specified directory as: system.setProperty("ras.config","c:\temp"). This function call specifies that the clientSDKOptions.xml file in c:\temp is to be used for locating RAS servers.
    Thanks,
    Prithvi

  • BOXI3.1: Error during migration -The system cannot find the path specified

    Hi,
    I'm trying to migrate my reporting server from BOXIR2 to BOXI3.1.
    I have a Java App which uses the SDK to generate reports hosted on BOE.
    I have updated the SDK and when i attempt to generate a very simple test report, i get this error:
    The system cannot find the path specified.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: The system cannot find the path specified.
    ---- Error code:-2147467259 Error code name:failed
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
    When i stepped through the codes, it occurred at this line:
    ByteArrayInputStream aiStream = (ByteArrayInputStream)rptDoc.getPrintOutputController().export(exportOptions);
    Does anyone know the cause of the issue? Some guide on what to check will also be helpful! Thanks!

    Hi Aasavari,
    We are running BOXI3.1 SP4.
    For debugging purpose, I created a small program with your suggestion to remove exportOptions.
    My report is called "testReportName" and it is created in "CMC > Folders > testFolderName":
    IEnterpriseSession enterpriseSession;
    IInfoStore infoStore;
    IReportAppFactory rptAppFactory;
    IInfoObjects oInfoObjects;
    int reportFolderSI_ID;
    String reportFolder = "testFolderName";
    String reportName = "testReportName";
    String paramVal = "2012-01-31";
    try {
         enterpriseSession  = CrystalEnterprise.getSessionMgr().logon(boUser, boPwd, boAPSName, boAuthType);
         //Get the InfoStore service from Crystal Enterprise
         infoStore = (IInfoStore)enterpriseSession.getService("InfoStore",com.crystaldecisions.enterprise.ocaframework.ServiceNames.OCA_I_IINFO_STORE);
    } catch (SDKException e) {
         System.out.println(e.message());
    try {
         //Get the Report Application Factory service from Crystal Enterprise
         rptAppFactory = (IReportAppFactory)enterpriseSession.getService("RASReportFactory");
         String parentFolderQuery = "SELECT * FROM CI_INFOOBJECTS WHERE " +
         "SI_PARENT_FOLDER=0 and SI_PROGID='CrystalEnterprise.Folder' and " +
         "SI_NAME= '"+reportFolder +"' ORDER BY SI_NAME";
         IInfoObjects parentFolderInfoObjects = infoStore.query(parentFolderQuery);
         reportFolderSI_ID = ((IInfoObject)parentFolderInfoObjects.get(0)).getID();
         // Retrieve the report by name and its reportFolder from Crystal Enterprise
         oInfoObjects = infoStore.query("Select * From CI_INFOOBJECTS Where SI_NAME='"+reportFolder+"' AND SI_PARENT_FOLDER="+reportFolderSI_ID);
         oInfoObjects = infoStore.query("Select * From CI_INFOOBJECTS Where SI_NAME='"+reportName+"' AND SI_PARENT_FOLDER='"+((IInfoObject)oInfoObjects.get(0)).getID()+"'");
         IInfoObject infoObject = (IInfoObject)oInfoObjects.get(0);
         //Open the report into a Report Document object
         ReportClientDocument rptDoc = rptAppFactory.openDocument(infoObject,0, Locale.ENGLISH);
         //Refresh tables
         IConnectionInfo connectionInfo;
         util.setJdbc_url(ap.getParameterString("URL"));
         util.setJdbc_driver(ap.getParameterString("driver"));
         util.setJdbc_user(ap.getParameterString("user"));
         util.setJdbc_pwd(ap.getParameterString("password"));
         util.setJdbc_database(ap.getParameterString("database"));
         connectionInfo = util.getJdbcConnectionInfo(util.getJdbcPropertyBag());
         int replaceParams = DBOptions._ignoreCurrentTableQualifiers + DBOptions._doNotVerifyDB;
         ConnectionInfos connectionInfos = rptDoc.getDatabaseController().getConnectionInfos(null);
         for (ConnectionInfo oldConnectionInfo:((Collection<ConnectionInfo>)connectionInfos))
              rptDoc.getDatabaseController().replaceConnection(oldConnectionInfo, connectionInfo, null, replaceParams);               
         //Get Params
         Fields mainRptParameterFields = rptDoc.getDataDefController().getDataDefinition().getParameterFields();
         String params = new String();
         for(Object parameterField : mainRptParameterFields){
              String paramName = ((ParameterField)parameterField).getName();
              if(parameterField != null)
                   if(((ParameterField)parameterField).getType() == FieldValueType.dateField)
                        rptDoc.getDataDefController().getParameterFieldController().setCurrentValue("", paramName,java.sql.Date.valueOf(paramVal));
                   else if (((ParameterField)parameterField).getType() == FieldValueType.dateTimeField){
                        //Stored Procs uses Datetime
                        java.util.Date datetime = (Date)reportDate_df.parse(paramVal);
                        rptDoc.getDataDefController().getParameterFieldController().setCurrentValue("",paramName, datetime);
                   else
                        rptDoc.getDataDefController().getParameterFieldController().setCurrentValue("", paramName, paramVal);
         ByteArrayInputStream aiStream = (ByteArrayInputStream)rptDoc.getPrintOutputController().export(ReportExportFormat.PDF);
         rptDoc.close();
    I ran this against BOXIR2 and BOXI3.1, BOXI3.1 will still throw error at
    ByteArrayInputStream aiStream = (ByteArrayInputStream)rptDoc.getPrintOutputController().export(ReportExportFormat.PDF);
    Another question, will CI_INFOOBJECTS table be created in the DB during installation of BOXI?

  • [COMException (0x80004005): The system cannot find the path specified.

    VS2008 and Crystal reports on 2003 Server running IIF.
    When I try to use the buttons, Print or Export to PDF, we get the following error:
    A little background, we have move all the crystal reports to what we call a report loader where the loader treverses the SQL tables and inserts the correct connection string to the SQL data server.  Before doing the move, the Export worked but the printing did not work.
    After the change now neither Export or Print works.  Sames error message.
    Stack Trace:
    COMException (0x80004005): The system cannot find the path specified.
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +87
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +279
    CrystalReportsException: Load report failed.
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +342
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +868
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +73
       CrystalDecisions.ReportSource.NonHTTPCachedReportSource.GetReport(RequestContext context, Boolean bAddToCacheWhenCreated) +648
       CrystalDecisions.ReportSource.LocalReportSourceBase.GetReportInfo(RequestContext reqContext) +73
       CrystalDecisions.Web.ReportAgentBase.GetReportInfo() +1045
       CrystalDecisions.Web.ReportAgentBase.get_IsLogOnInfoUsingIntegratedSecurity() +50
       CrystalDecisions.Web.ReportAgentBase.FillReportState(RequestContext request) +53
       CrystalDecisions.Web.CrystalReportViewer.OnExport() +1097
       CrystalDecisions.Web.CrystalReportViewer.RaisePostBackEvent(String eventArgument) +59
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +177
       System.Web.UI.Page.ProcessRequestMain

    Hi, Craig;
    It sounds like you are running into this issue: [CitrixDrive|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313337333933383338%7D.do]
    You do not say which version of Crystal Reports you are using, so the registry key may be different for whichever version you have.
    Regards,
    Jonathan

  • PrintOutputController::ExportEx - The system cannot find the path specified

    I just converted our code from using an older Crystal Reports API for creating PDFs and print jobs (ExportToDisk() and PrintToPrinter()) to using the RAS methods.  Now, when calling PrintOutputController::ExportEx(), occassionally the code generates an exception.
    Our log file contains the following lines:
        calling ExportEx()...
    ERROR:  caught Exception in CreateReport():
          name: COMException
          message: The system cannot find the path specified.
        creating new ReportDocument
        loading template: d:
    dev
    sources
    video
    nextlink
    Reports
    singlemeeting.rpt...  done
        sleeping for 5 seconds...
        retrying export/print...
        exporting to:
    mako\export\confirmations
    1138551.pdf... 
        entering createPDF():
    mako\export\confirmations
    1138551.pdf...
        calling ExportEx()...
    ERROR:  caught Exception in CreateReport():
          name: CrystalReportsException
          message: The report filename was empty.
    Here's the snippet of code that is occassionally generating the exception:
    void
    NReportFaxServiceImpl::createPDF(
        ReportDocument^ rpt,
        String^ destinationString)
    ...", destinationString);
        CrystalDecisions::ReportAppServer::ReportDefModel::ExportOptions^ exportOpts(gcnew CrystalDecisions::ReportAppServer::ReportDefModel::ExportOptions());
        // Set the ExportFormatType to PDF...
        exportOpts->ExportFormatType = CrystalDecisions::ReportAppServer::ReportDefModel::CrReportExportFormatEnum::crReportExportFormatPDF;
        Console::Write("    calling ExportEx()...");
        // This creates the report as a ByteArray that we will write to disk.
        CrystalDecisions::ReportAppServer::CommonObjectModel::ByteArray ^ byteArray = rpt->ReportClientDocument->PrintOutputController->ExportEx(exportOpts);
        Console::WriteLine("done.");
        cli::array<unsigned char, 1>^ oByte = byteArray->DetachArray();
        // Create the File...
        Console::Write("    creating the PDF file...");
        System::IO::File::Create(destinationString, Convert::ToInt32(oByte->Length))->Close();
        Console::Write("writing the PDF file...");
        System::IO::File::OpenWrite(destinationString)->Write(oByte, 0, Convert::ToInt32(oByte->Length));
        Console::Write("calling SetAttributes()...");
        System::IO::File::SetAttributes(destinationString, System::IO::FileAttributes::Directory);
        Console::WriteLine("done");
        GC::Collect();
    We're running Crystal Reports 2008 SP4 on a Windows 2003 server (virtual server).

    The only thing I can suggest is to try to add some additional logging to your application to see if you can see a pattern of which report/parameters are being used when this error is thrown.

  • Error message on my development workstation: The system cannot find the file specified.

    Post Author: cseverin
    CA Forum: Crystal Reports
    Hi,
    I am currently developing an ASP.NET website using Visual Studio.NET 2005. I am using the .NET 2.0 framework, VB.NET as my programming language and I connect successfully to a SQL Server 2005 database.  I can select, insert, update and delete data from the database elsewhere in my project, so I know basic connectivity isn't an issue.  The problem seems to be with Crystal Reports. 
    I created a folder called 'Reports' in my project and added a Crystal Report file (OpenFiles.rpt) to it.  I designed the report and initally used a hard-coded SQL query as its datasource so I could quickly get the database fields onto the report and preview them.  All worked fine. 
    To make the report accessible to the rest of the website, I created an .xsd dataset file containing the three tables (and their corresponding tableadapters) that the report requires and then redeveloped the report using the dataset as the datasource for the report.  After doing this, the preview no longer worked.
    Next, I added a page to the website and dragged a Crystal Report Viewer Control onto it.  In the code behind the page I wrote:
    Option Strict On
    Imports System.Data
    Imports CrystalDecisions.CrystalReports.Engine
    Imports CrystalDecisions.Shared
    Partial Class Reports
         Inherits System.Web.UI.Page
         Private objOpenFilesreport As OpenFilesReport
         Private rptOpenFiles As ReportDocument
         Private strLastErrorMessage As String = Nothing
         Private errLastException As Exception = Nothing
         Dim strFileKey As String
         Dim strJurisdictionCode As String
         Dim strStaffId As String
         Dim strReportId As String
         Private Sub ConfigureCrystalReports()
              Dim reportPath As String = Server.MapPath("OpenFiles.rpt")
              Dim rptopenfiles As New ReportDocument
              rptOpenFiles.Load(reportPath)  <== I checked this during execution and the value correctly points to the OpenFiles.rpt file in the Reports     folder of my project
              Dim ConnectionInfo As ConnectionInfo = New ConnectionInfo()
              ConnectionInfo.DatabaseName = my database
              ConnectionInfo.UserID = login id of user
              ConnectionInfo.Password = user's password
              SetDBLogonForReport(ConnectionInfo, rptopenfiles)
              CrystalReportViewer1.ReportSource = rptopenfiles
         End Sub
         Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
             ConfigureCrystalReports()
         End Sub
         Private Sub SetDBLogonForReport(ByVal ConnectionInfo As ConnectionInfo, ByVal myReportDocument As ReportDocument)
              Dim myTables As Tables = myReportDocument.Database.Tables
              For Each myTable As CrystalDecisions.CrystalReports.Engine.Table In myTables
                   Dim myTableLogonInfo As TableLogOnInfo = myTable.LogOnInfo
                   myTableLogonInfo.ConnectionInfo = ConnectionInfo
                   myTable.ApplyLogOnInfo(myTableLogonInfo)
              Next
         End Sub
    End Class
    I added a hyperlink to one of the existing pages on the website to navigate to this page with the report viewer on it.  When I run the website in Visual Studio and click on the hyperlink I get the following:
    Server Error in '/MyTest' Application.
    The system cannot find the file specified.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Runtime.InteropServices.COMException: The system cannot find the file specified.Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:
    &#91;COMException (0x80004005): The system cannot find the file specified.
    &#93;
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +126
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +442
    &#91;Exception: Load report failed.&#93;
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +513
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +1378
       CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport() +149
       CrystalDecisions.CrystalReports.Engine.ReportDocument.get_DataDefinition() +85
       CrystalDecisions.CrystalReports.Engine.ReportDocument.get_ParameterFields() +158
       CrystalDecisions.Web.CrystalReportSource.BindControlParameter(Parameter parameter) +130
       CrystalDecisions.Web.CrystalReportSource.DataBindParameters() +191
       CrystalDecisions.Web.CrystalReportSource.EnsureParameters(Boolean forceDataBind) +90
       CrystalDecisions.Web.CrystalReportSource.LoadCompleteEventHandler(Object sender, EventArgs e) +47
       System.Web.UI.Page.OnLoadComplete(EventArgs e) +96
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4086
    Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832 
    Any ideas, anyone?
    Also, assuming I can get past this error, I will need to figure out how to fill the tables in the .xsd dataset file.  I have written a class for the dataset that includes functions that populate the tables in the dataset from the database by executing SQL queries.  But how do I call these functions at the time the report is run?
    This is my first Crystal report written in .NET and I've been struggling with it for days now.  Any help would be most appreciated!
    Thanks very much!
    Chris Severin

    hello, the error message is obviously coming from one of the installed mcafee extensions. please directly contact mcafee technical support - they can likely give you more detailed guidance and are the only ones who can fix bugs or make necessary adjustments in the addon.

  • Getting ComException (0x80004005):The system cannot find the file specified

    Our customer is getting an error from her remote location via the internet, running a report that has not changed in a year.  None of our other customers are having this problem.  When we sign in from our office with her credentials, we do not get the error.  We've had her reboot, clear cache, etc.  She has tried from Firefox and IE ... same result.
    She is running WindowsXP and signs into our website VB program on a 2008Server under IIS aspx.net and SQL Server.  We are using Crystal Reports 2008 v12.2.0.290 full.
    The error is:
    [COMException (0x80004005): The system cannot find the file specified.
       CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) +0
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) +95
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +356
    [Exception: Load report failed.]
       CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +419
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +895
       CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +84
       nettax.newtax_cr_1.GenerateReport(String Reportname)  in  F:\the cloud nettax with codebehind\nettax\newtax_cr_1.aspx.vb:137
       nettax.newtax_cr_1.page_load(object sender, eventargs e)  in  F:\the cloud nettax with codebehind\nettax\newtax_cr_1.aspx.vb:1316
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    Again, we have made no changes ... it has just stopped working for her, yet other remote users are creating the report just fine .... BUT, each has their own SQL database that the report is being created from.  Any help??

    I moved your post to the .NET - SAP Crystal Reports forum.
    Only idea I have at this time is to get [Process Monitor|http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx] on this. You'll have to download it on to the server. Filter for the worker process so you limit the log size. Then have the customer attempt to load the report. Once she gets the error, you can save the log. Look for any errors re. load of files (DLLs, rpt files, etc.) and also look for "Access Denied" errors on files as well as registries.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Maybe you are looking for

  • Access denied error for BW Report iView..Please help :(

    Hello All, I have created a BW Report iView..containing a Bex query. Have created the required BW system object too. When I preview this iView, it asks me for BW system authentication....since am not mapped to this BW system. Its alright till here...

  • Questions on Java Reflection in EJB

    Hi, Recently, I use reflection technology on EJB to get/set properties of a bean. We need it because we need to encapsulate data in a map to transfer data between presentation layer and business back end(i.e. the so-called value data object). A bean

  • Question about Apple's Student Discount

    Has Apple always given a student discount the past few years? I don't want to wait for the new OS if there won't be a discount and a free printer and iPod.

  • "Error rendering report" in hosted application

    I am suddenly getting the following error message in my hosted application (I work for Oracle): Error rendering report: ORA-00600: internal error code, arguments: [17059], [0x9370852C], [0x93708260], [0x90EE7724], [], [], [], [] when running page 9 (

  • Why do iOS 7 photo filters disappear?

    Whenever I take a photo on my 5s using one of the built in photo filters, the picture appears orginal if I: Load onto my computer Put into a collage frame like Diptic Upload to Tumblr However, the filter stays on if I upload directly to facebook, ins