【问题标题】:missing data in Crystal Reports SubreportCrystal Reports 子报表中缺少数据
【发布时间】:2013-08-02 21:22:03
【问题描述】:

我有一组子报表。每个代码几乎都是相同的(我喜欢模式)。这是失败的示例:

    ' subject
    sql = "select * from vw_UORSuspect where offense_id = " + offenseID.ToString
    GetData(sql, dsUORSubject, "vw_uorSubject", 0)
    If Not dsUORSubject.Tables(0).Rows.Count = 0 Then
        mySection = UORrpt.ReportDefinition.Sections("DetailSection6")
        mySubObj = mySection.ReportObjects("Subreport3")
        mySubRep = mySubObj.OpenSubreport(mySubObj.SubreportName)
        mySubRep.SetDataSource(dsUORSubject)
        'mySubSection = UORrpt.Subreports.Item(0).ReportDefinition.Sections(1)
    End If

这很简单。我加载我的数据集对象,测试是否有数据,然后将其填充到报告小节中。数据确实会加载到数据集中,便于查看。

数据集中有两条记录,与按预期显示的上一个子报表一样。

【问题讨论】:

    标签: vb.net .net-4.0 crystal-reports crystal-reports-2010 subreport


    【解决方案1】:

    这原来是视图名称中的拼写错误的结果,如果您查看名称就可以看到。有人看着我的肩膀让我看到它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-14
      • 2010-10-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多