VB中datareport中如何绑定数据源

来源:百度知道 编辑:UC知道 时间:2024/05/15 11:23:31
我是vb电脑新手,请说的尽量简单点,尽量在属性中设置,不要用代码,谢谢.
我想用SQL数据库连接,
还有用datareport做报表时网格线一定要自己手动画上吗?

如果数据源来自数据环境我是这么做的
Unload Envir
Load Envir
Report1.Refresh
Report1.Show 1
设数据环境为con,有Command为rsCust

if con.commands(1).state<>adstateclosed then
con.close
endif
con.open "..."
con.commands(1).rsCust

或:
if con.rsrscust.state<>adstateclosed then
con.rsrscust.close
endif
con.rscust

OK??