datasetForReceiptObj.genralTable.Clear();
datasetForReceiptObj.subjectTable.Clear();
datasetForReceiptObj.genralTable.AddgenralTableRow(receiptNo, studentName, category, studentBranch);
for (int i = 0; i < subject.Count; i++)
{
datasetForReceiptObj.subjectTable.AddsubjectTableRow(subject[i], amountRec[i]);
}
crystalReportForReceiptObj.SetDataSource(datasetForReceiptObj);
crystalReportViewer1.ReportSource = crystalReportForReceiptObj;
注意:genralTable 包含一行
i.e. 111 abc degree cse
subjectTable contains two rows
i.e. Java 2000
C# 2000
报告显示如下:
111 abc degree cse Java 2000
111 abc degree cse C# 2000
即重复 genralTable 内容,我不想重复 genralTable 内容
喜欢
111 abc degree cse Java 2000
C# 2000
我怎样才能显示这样的输出?