Crystal Reports 9 在VB中如何使用.

wghshy 2004-04-26 01:14:55
谁能不能帮一下忙,详细讲解一下Crystal Reports 9在VB中如何使用.(报表的数据库连接最好使用ADO)
我对此搞了好久都搞不定,我需要有详细的步骤.大家谁能帮我.
...全文
103 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
lk_cool 2004-04-29
  • 打赏
  • 举报
回复
http://211.65.64.83/kk/crastal report 9 help.rar
看一下,可能有用
gys_yxr 2004-04-28
  • 打赏
  • 举报
回复
在 Crystal Reports 9 安装目录下有例子呀
ywg888 2004-04-28
  • 打赏
  • 举报
回复
用上面的代码,数据为什么不随查询结果变?而是固定的建立时的数据?
wxrwan 2004-04-28
  • 打赏
  • 举报
回复
gz.刚download,还没用过
tztz520 2004-04-28
  • 打赏
  • 举报
回复
gz
wghshy 2004-04-27
  • 打赏
  • 举报
回复
后面的问题没有办法实现吗?
wghshy 2004-04-26
  • 打赏
  • 举报
回复
但我在用Crystal Reports 9做报表时怎么设成动态数据库呢?
也就是说我不要用一个绝对路径,而是要把Crystal Reports 9的所要用的数据表用一个相对的路径来代替.象app.path + "database.mdb".
这样程序完成之后,不会因为安装位置改变了而无法找到报表文件,因为路径已经更改了.
lihonggen0 2004-04-26
  • 打赏
  • 举报
回复
Dim CryApp As New CRAXDDRT.Application
Dim Report As CRAXDDRT.Report

Dim strCnn As String
Set Report = CryApp.OpenReport(App.Path & "\report2.rpt")

Dim cnn1 As New ADODB.Connection
Dim adoRS As New ADODB.Recordset

strCnn = "Provider=sqloledb;Data Source=abrams;Initial Catalog=salestesttmp;User Id=sa;Password=test;"
cnn1.Open strCnn

adoRS.Open "select top 10 * from answers", cnn1, adOpenDynamic, adLockBatchOptimistic
Report.Database.SetDataSource adoRS

Screen.MousePointer = vbHourglass
CRViewer91.ReportSource = Report
CRViewer91.ViewReport
Screen.MousePointer = vbDefault
lihonggen0 2004-04-26
  • 打赏
  • 举报
回复
http://search.csdn.net/expert/topic/51/5106/2003/9/4/2222758.xml

1,216

社区成员

发帖
与我相关
我的任务
社区描述
VB 数据库(包含打印,安装,报表)
社区管理员
  • 数据库(包含打印,安装,报表)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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