Creating an ASP. NET Report

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.