RDLC sequence table learning sequence table-Sub-sequence table

Source: Internet
Author: User
Yesterday, I encountered a problem in the production of the orders table. Today I decided to use the form of the suborders table to explain the problem. I have taken an exam in this article: http://www.cnblogs.com/waxdoll/archive/2006/10/13/458409.html. In fact, this article is quite concise, but it still encountered some problems during the process, these questions will be listed for your reference and attention.

1. The data source of the Add sub-tables Table can only be added in the data source method SubReportProcessingEventHandler.

This. reportViewer. LocalReport. SubreportProcessing + = new Microsoft. Reporting. WinForms. SubreportProcessingEventHandler (SubReportProcessingEventHandler );


Private void SubReportProcessingEventHandler (object sender, Microsoft. Reporting. WinForms. SubreportProcessingEventArgs e)
{
E. DataSources. Add (new Microsoft. Reporting. WinForms. ReportDataSource ("dsOrder _ order details", this. dsOrders. Order details ));
}


2. whether it is a primary table or a subpartition table, the name of the dataset in the specified data source must be consistent with the name of the dataset in the table or list, otherwise, the primary and secondary tables cannot be displayed. I just did not pay attention to this issue for an hour.

In summary, today is just a little more profitable.

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.