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
我如何显示这样的输出?