Use the following statement after installing the crystal report;
Configure the rpt file,
Foreground (Asp.net page ):
<%@ Register Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %><CR:CrystalReportViewer ID="ReTransport" runat="server" AutoDataBind="true" />
Background:
Public void getlist () {reportdocument Doc = new reportdocument (); // rpt file path Doc. load (server. mappath ("/cry/crystalinschoolinfo. RPT "); retransport. toolpanelview = toolpanelviewtype. none; maticsoft. bll. list. lists pro = new maticsoft. bll. list. lists (); If (session ["crystaldata"]! = NULL) {// configure the data source dataset Doc. setdatasource (datatable) session ["crystaldata"]); this. retransport. reportsource = Doc; this. retransport. databind ();} else {httpcontext. current. response. write ("<SCRIPT> alert ('Connection timed out, Please Refresh! '); Window. Location. href = Document. referrer; </SCRIPT> ");}}
Note: During the rpt file configuration process, the page length represents a column. If it is pulled too long, it will be added to the next page by default, leading to false positives as the illusion that data cannot be traversed.
I have never used more advanced embedded reports. I will learn from them later.
Finally paste the Visual Studio 2010 crystal report installation package: http://yunpan.cn/QC9fWzZdj64ER (extraction code: a7b9)