RDLC Report (8)

Source: Internet
Author: User

It is time to end. The more I feel that I cannot grasp the content of the essay, the more I have explained the content above. If there is anything I don't understand, my code: http://files.cnblogs.com/waxdoll/RDLCReport.rar. The main content of the Code is how to customize the document printing for the RDLC report.

Download content includes:

The code for calling the report browser in other forms is as follows:

// Create a report browser object
RDLCReport. ReportViewer frmRPT = new RDLCReport. ReportViewer ();
// Specify the Data source displayed in the list report. We recommend that you change MainDataSet and DrillDataSet to the System. Data. DataTable type to facilitate the call.
FrmRPT. MainDataSet = this. dsMain;
// Set the data source name for the list report, which must be the same as the data source name in the data area in the report.
FrmRPT. main1_cename = "DataSet_Main ";
// Report name, which is the identifier used to store the report page settings
FrmRPT. ReportName = "DataList ";
// Specify the data source for Drilling Reports
FrmRPT. DrillDataSet = this. dsDrill;
// Specify the data source name for the drill-down report
FrmRPT. DrillDataSourceName = "DataSet_Drill ";
// Specify the report path
FrmRPT. ReportPath = System. Windows. Forms. Application. StartupPath + @ "\ Reports \ rptReport. rdlc ";
// Display the report Browser
FrmRPT. ShowDialog ();

Welcome to exchange and provide valuable comments.

Related essays:
RDLC Report (1)
RDLC Report (2)
RDLC report (III)
RDLC Report (4)
RDLC report (5)
RDLC report (6)
RDLC report (7)

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.