怎样实现水晶报表与ADO的连接?(高分,急!!!!)

navy8 2002-08-22 08:23:35
请问一下,我已经用ODBC制作好了水晶报表,如何实现在VB的ADO数据库连接中,运行传递的SQL实时的显示报表???
...全文
40 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
sherlock7910 2002-08-28
  • 打赏
  • 举报
回复
楼上说的对.
plife 2002-08-28
  • 打赏
  • 举报
回复
gstrConnect = "driver={SQL Server}" & _"; Server=" & gStrServer & _
"; uid=" & gstrUsername & "; pwd=" & gstrPassword & _ "; database=" & gstrDatabase
crptDrilling.Connect = gstrConnect
crptDrilling.ReportFileName = strReportFile
crptDrilling.SelectionFormula = strQuery
crptDrilling.Action = 1
blue_pencil 2002-08-23
  • 打赏
  • 举报
回复
gstrConnect = "driver={SQL Server}" & _
"; Server=" & gStrServer & _
"; uid=" & gstrUsername & "; pwd=" & gstrPassword & _
"; database=" & gstrDatabase


crptDrilling.Connect = gstrConnect
crptDrilling.ReportFileName = strReportFile
crptDrilling.SelectionFormula = strQuery
crptDrilling.Action = 1
petkoala 2002-08-22
  • 打赏
  • 举报
回复


Adodc1.ConnectionString = strcon
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "SELECT * From table1"
Adodc1.Refresh
navy8 2002-08-22
  • 打赏
  • 举报
回复
quick

807

社区成员

发帖
与我相关
我的任务
社区描述
VB 多媒体
社区管理员
  • 多媒体
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧