The Crystal Report version i use is SAP Crystal Reports, developer version for Microsoft Visual Studio SP5 I downloaded it from http://scn.sap.com/docs/DOC-35074
HTML CODE
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" />
CODE BEHIND
conn.Open();
palce dss = new palce();
string sql = "Select * FROM [Places]";
SqlDataAdapter adp = new SqlDataAdapter(sql,conn);
adp.Fill(dss.PlaceView);
myCrystalReport report = new myCrystalReport();
report.SetDataSource(dss);
CrystalReportViewer1.ReportSource = report;
There is no runtime error but the Crystal report just wont show up in any of my browser
google chrome Version 31.0.1650.57 IE 10
I am also using built in IIS express in VS 2012
You never load the report in code-behind
report.Load(Server.MapPath("ReportName.rpt"));
and do you have your report source in aspx?
<CR:CrystalReportSource ID="CrystalReportSource1" runat="server">
<Report FileName="FilePath\ReportName.rpt">
</Report>
</CR:CrystalReportSource>
I just find out the cause Crystal Reports WebForm Viewer will not work on IIS Express ( VS 2012 inproc WEB Server )
I found it from SAP official website
too bad for me :(
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.