winform 中使用fast resport问题,急急急!

zdlgeu zdlgeu 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

如上图所示,数据已经传入fast report中了,可始终报错:存在相同的key,为何软件中同时用两个table就出错呢,而且有时候那table控件显示到另外的地方去了,或者两个table重叠了,希望有熟悉这个软件的指点下,谢谢。
表一的代码:
private void Table_wpqd_ManualBuild(object sender, EventArgs e)
{
// get the data source by its name
DataSourceBase rowData1 = Report.GetDataSource("TableQD");
// init the data source
rowData1.Init();

// print the first table row - it is a header
Table_wpqd.PrintRow(0);
// each PrintRow call must be followed by either PrintColumn or PrintColumns call
// to print cells on the row
Table_wpqd.PrintColumns();
Table_wpqd.PrintRow(1);
// each PrintRow call must be followed by either PrintColumn or PrintColumns call
// to print cells on the row
Table_wpqd.PrintColumns();
// now enumerate the data source and print the table body
while (rowData1.HasMoreRows)
{
// print the table body
Table_wpqd.PrintRow(2);
Table_wpqd.PrintColumns();
// go next data source row
rowData1.Next();
}
}
表二的代码:
private void Table1_ManualBuild(object sender, EventArgs e)
{
// get the data source by its name
DataSourceBase rowData2 = Report.GetDataSource("TableSP");
collect.
// init the data source
rowData2.Init();

// print the first table row - it is a header
Table1.PrintRow(0);
// each PrintRow call must be followed by either PrintColumn or PrintColumns call
// to print cells on the row
Table1.PrintColumns();
Table1.PrintRow(1);
// each PrintRow call must be followed by either PrintColumn or PrintColumns call
// to print cells on the row
Table1.PrintColumns();
// now enumerate the data source and print the table body
while (rowData2.HasMoreRows)
{
// print the table body
Table1.PrintRow(2);
Table1.PrintColumns();

// go next data source row
rowData2.Next();
}
}
...全文
评论 1
收藏 已收藏
分享
返回顶部
zdlgeu
C# 111,130 成员 642,540 内容