Forum Moderators: open

Message Too Old, No Replies

crystal report with .net

LoadSaveReportException: Load report failed

         

neream

9:37 am on Jul 19, 2002 (gmt 0)


Hello,

I have this error
*****************************************************************************
[LoadSaveReportException: Load report failed.]
CrystalDecisions.Web.ReportAgent.j() +329 CrystalDecisions.Web.ReportAgentBase.set_ReportSource(Object value) +224 CrystalDecisions.Web.ReportAgent.set_ReportSource(Object value) +16 CrystalDecisions.Web.CrystalReportViewerBase.set_ReportSource(Object value) +37 CrystalReportTest.WebForm3.Page_Load(Object sender, EventArgs e) in \\IEINFRASW01\c$\inetpub\wwwroot\CrystalReportTest\WebForm3.aspx.vb:24 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +29 System.Web.UI.Page.ProcessRequestMain() +724
**************************************************************************

This is my code to charge the page and the file is in the correct path,
I have tryed with this both instructions

1. CrystalReportViewer1.ReportSource = "c:\inetpub\wwwroot\crystalreporttest\CrystalReport6.rpt"
2. CrystalReportViewer1.ReportSource = Server.MapPath("CrystalReport6.rpt")

Before it worked with another report but when i tried to put another one i cannot load it.

Thanks

tomasz

1:16 pm on Jul 19, 2002 (gmt 0)

10+ Year Member



Hi,neream

Your syntax should load the report.
I've seen some apps loading reports with double "\\" instead of single "\", you might try it
ie. c:\\yourpath\\report.rpt
But, the only one thing i've learned, .NET CrystalViewer does not provide client printing and if you have multi page report and need to provide printing options, then you have to export your the report to pdf, word or excel or use old ActiveX Viewer method (not recommended)

Anyway, here is the thread which addresses printing problems.

I hope it will help.

[webmasterworld.com...]