Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

Load report failed when it opens in the outside of VS.

$
0
0

Hello, I'm new to this forum.

I'm having a problem and the deadline of this project is this week.

The problem is appears when the project is nearly done.

The report is loaded completely in my VS 2010 where I make the project, and I'm about to running in the built version before the application will be used for the other clients.

FYI, I built them with a setup wizard.

And when I was about to click the print doc. this unexpected problem was appeared.

 

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: Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.

   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 WindowsApplication1.Form5.Form5_Load(Object sender, EventArgs e) in D:\FEBRIAN\Monthly Report\New folder\report\report\Form5.vb:line 32

   at System.Windows.Forms.Form.OnLoad(EventArgs e)

   at System.Windows.Forms.Form.OnCreateControl()

   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

   at System.Windows.Forms.Control.CreateControl()

   at System.Windows.Forms.Control.WmShowWindow(Message& m)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

   at System.Windows.Forms.ContainerControl.WndProc(Message& m)

   at System.Windows.Forms.Form.WmShowWindow(Message& m)

   at System.Windows.Forms.Form.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 did some codes in the preview to sort the report by date button. I think this is just the problem of the path report, but I have no idea how to fix it.

And here is the code I applied to the BtnPreview.

 

Dim ReportKu As New ReportDocument               ReportKu.Load("..\..\CrystalReport4.rpt")               ReportKu.SetParameterValue("Start", dtpTanggalMulai.Value)               ReportKu.SetParameterValue("End", dtpTanggalSelesai.Value)        CrystalReportViewer1.ReportSource = ReportKu        CrystalReportViewer1.Refresh()

 

Also I did a formula in the report too. Here it is.

DateTimeValue({Start}) <= DateTimeValue({wwt.tanggal}) and DateTimeValue({wwt.tanggal}) <= DateTimeValue ({?End})

Any suggestions? Thanks in advance!


Viewing all articles
Browse latest Browse all 3636

Trending Articles



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