When trying to view a Crystal Reports report (.rpt) file through a web page using the Crystal Reports Viewer control it keeps giving me the error that crdb_p2bxbse.dll could not be found or loaded. That DLL was not found on my server, even though Visual Studio 2008 is installed. I have extracted the DLL from the Crystal Reports CAB files and placed it in System32, Windows, and also tried the bin folder for my web app. Same error message each time.
For the page I have only placed the viewer control on the page, and set the report source property in the code behind. As you can see I have left this page as simple as possible. Is there more that I need to do to make this work?
Thanks for help.
<form id="form1" runat="server">
<CR:CrystalReportViewer ID="rptView" runat="server" AutoDataBind="true" />
public partial class REPORTS_Metro_report : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
string report = Request["rptID"];
SqlConnection con = Utilities.getConnection("Lansa_ConnectionString");
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandType = CommandType.Text;
cmd.CommandText="SELECT reportName from tblReports WHERE id=" + report;
rptView.ReportSource="files/" + name;
// rptView.ReportSource=Server.MapPath("files/" + name);