可用dataenviroment作数据源的
datarepot1.datasource=dataenviroment
datarepor1.datamemeber='one of the commad of the dataenviroment
or set datareport1.datasource=recourset
datarepot1.datasource=dataenviroment
datarepor1.datamemeber='one of the commad of the dataenviroment
or set datareport1.datasource=recourset
然后在dataenviroment中添加连接
接着添加命令,
最后添加DataReport,设计一下你的报表
就这么简单
然后在dataenviroment中添加连接
接着添加Command(可以有参数)
调用:
DataEnvironment1.Command1 CStr(TXT_NO.Text) ‘后面是参数