我需要你的帮助 。我想在表运行时添加子报表。代码是:
xrTableCell14.Controls.Add(xrSubreport5);
xrSubreport5.BringToFront();
xrSubreport5.Location = new Point(0, 0);
但它无法显示结果。我正在使用 C#
我需要你的帮助 。我想在表运行时添加子报表。代码是:
xrTableCell14.Controls.Add(xrSubreport5);
xrSubreport5.BringToFront();
xrSubreport5.Location = new Point(0, 0);
但它无法显示结果。我正在使用 C#
很抱歉让您失望了,但实际的 XtraReports 实现并没有提供实现这种场景的能力。
请参阅 DevExpress 上的此论坛帖子,其中有多个人要求该功能,但仍未实现!
http://community.devexpress.com//forums/p/55360/186621.aspx#186621
谢谢维杰。我解决了那个问题。代码 :
sub_Rpt_Education_RPT Education = new sub_Rpt_Education_RPT();
Education.DataSource = _dt;
Education.DataMember = "dtEducation";
xrSubEducation.ReportSource = Education;
xrTableRow12.Height = Education.RowCount * 23;