如何将数据集中两个表的数据分别显示到水晶报表?

时间:2013-04-02 13:53:43

标签: c# crystal-reports

 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

我如何显示这样的输出?

0 个答案:

没有答案