发表于:2005-12-27 11:09:00
楼主
[color=#808080][/color][color=#800000][/color][color=#808080]在INTOUCH中使用水晶报表控件求助
因为INTOUCH中不支持VBA,所以下列VBA的程序
connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=g:\intouch.mdb;Persist Security Info=False"
conn.ConnectionString = connstr
conn.Open
conn.CursorLocation = adUseClient
rs.Open "0", conn, adOpenKeyset, adLockReadOnly
Set oRpt = oApp.OpenReport("G:\Report2.rpt", 1)
oRpt.Database.SetDataSource rs
oRpt.ReadRecords
CRViewer91.ReportSource = oRpt
CRViewer91.ViewReport
在INTOUCH中怎么实现???
[color=#800080][color=#FF0000]特别是指定控件的ReportSource,怎么做?[/color][/color]研究了好几天,也没有想明白,怎么用,希望大家能给讲讲,多谢
QQ:282468222
EMAIL:pengzhe1113@163.com联系,欢迎大家交流
最好给个实例看看,[/color]