Files used in the report:
(1) Report design file: XXX.RDLC file
(2) Calling the report file: Xxx.aspx file
Report implementation:
(1) aspx calling code: <rsweb:reportviewer id= "Report1" runat= "Server" font-names= "Verdana" font-size= "8pt" height= "100%"
cssclass= "ReportView" waitmessagefont-names= "Verdana" waitmessagefont-size= "14pt" >
<localreport reportpath= "XXX.RDLC" >
</LocalReport>
</rsweb:ReportViewer>
(2) Background implementation:
This.report1.LocalReport.DataSources.Clear ();
DataTable a= facservcomm.executesqldatatable ("select * from called DataSet");
THIS.REPORT1.LOCALREPORT.DATASOURCES.ADD (New ReportDataSource ("DataSet1", a));
(3) Design of the report:
Data in a report is stored in a matrix, and the data source is from a matrix-bound dataset
(4) The implementation of the serial number: F (x) =rownumber (Nothing)
(5) The list value in the database appears as a row group in the report, but the row group here does not use ORDER by but is simply a detailed list item
(6) The built-in functions and functions of the RBLC file are encapsulated in ASP. NET to provide the desired expression
Creating an ASP. NET Report