brooksgroup
asked on
Visual Studio 2005 and Crystal Reports - Load report failed Error
I installed Visual Studio 2005 Professional. When I try to view Crystal Report, I get "Load report failed" error. I did not have a previous version of Crystal Report installed before I install VS 2005. I'm new to Crystal Report and am not sure if this is the configuration problem or something else.
Here is what I did:
1. Created a report called samplereport.rpt. It is a simple blank report with nothing on it.
2. I made a .aspx page called Report.aspx. Then I dropped CrystalReportViewer. Here is the code
<CR:CrystalReportViewer ID="myCrystalReportViewer" runat="server" AutoDataBind="True" Height="50px" Width="350px" ReportSourceID="CrystalRep ortSource1 " />
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="samplereport.rpt ">
</Report>
</CR:CrystalReportSource>
for code behind page I added:
Imports CrystalDecisions.CrystalRe ports.Engi ne
Imports CrystalDecisions.Shared
3. when I try to view report.aspx page, I get the "load report failed" error.
I appreciate any help or insights.
Thank you.
Here is what I did:
1. Created a report called samplereport.rpt. It is a simple blank report with nothing on it.
2. I made a .aspx page called Report.aspx. Then I dropped CrystalReportViewer. Here is the code
<CR:CrystalReportViewer ID="myCrystalReportViewer"
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="samplereport.rpt
</Report>
</CR:CrystalReportSource>
for code behind page I added:
Imports CrystalDecisions.CrystalRe
Imports CrystalDecisions.Shared
3. when I try to view report.aspx page, I get the "load report failed" error.
I appreciate any help or insights.
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes, please close this question. Thank you.
ASKER
<pages>
<namespaces>
<clear/>
<add namespace="System"/>
<add namespace="System.Collecti
<add namespace="System.Collecti
<add namespace="System.Configur
<add namespace="System.Text"/>
<add namespace="System.Text.Reg
<add namespace="System.Web"/>
<add namespace="System.Web.Cach
<add namespace="System.Web.Sess
<add namespace="System.Web.Secu
<add namespace="System.Web.Prof
<add namespace="System.Web.UI"/
<add namespace="System.Web.UI.W
<add namespace="System.Web.UI.W
<add namespace="System.Web.UI.H
</namespaces>
</pages>
However, I now have a different problem. I cannot view crystal report toolbar images from the web. I'm not sure where the images files are pulled from. Does anyone know how to fix this? As I stated earlier, I use VS 2005 Professional.