cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports Load Report Failed VB.NET

0 Kudos

Hi, will somebody help me about this problem?? In my PC, the application I made works fine but when i deploy my application to the client machine and when i click Report Button it give me an error. Please see below.

CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: 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 CrystalDecisions.ReportSource.NonHTTPCachedReportSource.GetReport(RequestContext context, Boolean bAddToCacheWhenCreated) at CrystalDecisions.ReportSource.LocalReportSourceBase.GetAvailableExportFormats(ExportRequestContext reqContext) at CrystalDecisions.Windows.Forms.ViewerDocument.GetAvailableExportFormats() at CrystalDecisions.Windows.Forms.PageView.CreateReportDocument(String rptURI) at CrystalDecisions.Windows.Forms.PageView.CreateNewReportDocument(String pageName) at CrystalDecisions.Windows.Forms.CrystalReportViewer.CreateReportSource(Object reportSource) at CrystalDecisions.Windows.Forms.CrystalReportViewer.set_ReportSource(Object value) at P.O_System.Crystal_Report.InitializeComponent() in C:\Users\IT Admin\source\repos\P.O System\P.O System\Crystal Report.Designer.vb:line 130 at P.O_System.Crystal_Report..ctor() in C:\Users\IT Admin\source\repos\P.O System\P.O System\Crystal Report.vb:line 6 at P.O_System.Import_Order.CmdReport_Click(Object sender, EventArgs e) in C:\Users\IT Admin\source\repos\P.O System\P.O System\Import Order.vb:line 238 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)

I spent days about this error and i don't know to fix this. Please help, i'm just new with this

Report Button Code:

Private Sub CmdReport_Click(sender As Object, e As EventArgs) Handles CmdReport.Click
      Dim cr As New Crystal_Report
      cr.Show()
      Dim crystalReport As New ReportDocument
      crystalReport.Load("C:\Program Files\Merasenko Corporation\Production Order\CrystalReport1.rpt")
      cr.CrystalReportViewer1.ReportSource = crystalReport
      cr.CrystalReportViewer1.Refresh()

End Sub

Btw, I'm using Microsoft Visual Studio 2017, Crystal Report 13 (SP21).

Database: Sql Server 2012

Server: Windows Server 2012

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Did you deploy the CR for Runtime MSI package?

If not download it and set your project to x86 or x64, CR runtime is for your app platform and not the OS platform.

I suggest upgrading to SP 24 and upgrade your Project references, read the info on the download WIKI page for SP 21

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Don

Answers (0)