VB 中如何实现报表的多层分组
开发语言: VB6.0+SP5
数据源驱动: Oracel 7i数据库,使用 Oracle Net连接数据库。
表格结构:ItemDiff(DNO,DName,SNO,SName,GNo,GName,ItemNo,ItemName,Price)
数据环境:DataEnvReport
连接:cnnReport.ConnectStrings="Provider=MSDAORA.1;UserID=Inv;Password=inv;Data Source=mis;Auto Translate=false;Persist Security Info=True"
Command::
cmdReport.ActiveConnect=cnnReport
cmdReport.CommandType=adUserTable
cmdReport.CommandText="ItemDiff"
报表设计器:
Name: dReport
DataSource:DataEnvReport
DataMember:cmdReport
我设置了3个Group,
第一个为:DNO,DName
第二个为:SNO,SName
第三个为:GNo,gName
Detais为:ItemNo,ItemName,Price
我用 dReport.Show方法是中是报:
Sections did not Match Data Source .
wo我把Group删除后能正常显示。
我不是什么原因,请各位大侠解答。