Vb.net 水晶报表:确定子报表的索引

Vb.net 水晶报表:确定子报表的索引,vb.net,crystal-reports,Vb.net,Crystal Reports,如何确定Crystal报表中子报表的索引。我有点困惑,因为我的主报告中附带了多个子报告。程序遇到一个错误“此字段名未知。”指出公式“如果不是(isNull({cirsourceOfInome.Subject}))和isNumeric({cirsourceOfInome.Subject}),则返回到number({cirsourceOfInome.Subject})”我的直觉是我没有调用子报表的正确索引 这是调用所有子报告的代码 cryRpt.Subreports(0).SetDataSource

如何确定Crystal报表中子报表的索引。我有点困惑,因为我的主报告中附带了多个子报告。程序遇到一个错误“
此字段名未知。”
指出公式
“如果不是(isNull({cirsourceOfInome.Subject}))和isNumeric({cirsourceOfInome.Subject}),则返回到number({cirsourceOfInome.Subject})”
我的直觉是我没有调用子报表的正确索引

这是调用所有子报告的代码

cryRpt.Subreports(0).SetDataSource(dsAppAdd)
cryRpt.Subreports(1).SetDataSource(dsSpoAdd)
cryRpt.Subreports(2).SetDataSource(dsFIParents)
cryRpt.Subreports(3).SetDataSource(dsFISiblings)
cryRpt.Subreports(4).SetDataSource(dsFIChildren)
cryRpt.Subreports(5).SetDataSource(dsSourceOfIncome)
cryRpt.Subreports(6).SetDataSource(dsBus)
cryRpt.Subreports(7).SetDataSource(dsExp)
cryRpt.Subreports(8).SetDataSource(dsGatheredInfo)
cryRpt.SetParameterValue("dispoIncome", disIncome.ToString)

子报表有一个属性“Name”。使用它(在开关情况下)。问题已解决将其更改为
cryRpt.Subreports(“AppAdd.rpt”).SetDataSource(dsAppAdd)
,以此类推子报表具有属性“Name”。使用它(在开关情况下)。问题已解决。将其更改为
cryRpt.Subreports(“AppAdd.rpt”).SetDataSource(dsAppAdd)
,依此类推