水晶报表4.6的使用示例
来源:互联网 发布:西昌电视台网络直播 编辑:程序博客网 时间:2024/05/17 07:43
Private Sub Command1_Click(Index As Integer)
With cr1 'cr1为报表控件
.PrinterDriver = Printer.DeviceName
.DiscardSavedData = True
'-------------------------------------------------
'连接方式一
.Connect = "DSN = drugdb;UID =sa;PWD =;"
'连接方式二
.Connect = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=evaluate;Data Source=SAMUNCLE"]
'连接方式三
Dim adocon As ADODB.Connection
Set adocon = New ADODB.Connection
adocon.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=drugdb;Data Source=SAMUNCLE"
adocon.ConnectionTimeout = 120
adocon.Open
'-------------------------------------------------
.Destination = crptToWindow '预览
.ReportSource = crptReport
.WindowHeight = Screen.Height
.WindowWidth = Screen.Width
.ReportFileName = App.Path + "/crystaltest47.rpt"
.WindowTitle = "标题"
.WindowState = crptMaximized '窗口最大化
.WindowLeft = 0
.WindowTop = 0
.Formulas(0) = ""
.Formulas(1) = ""
.Formulas(0) = "这是第一个参数!"
.Formulas(1) = "这是第二个参数!" & Chr(13) & Chr(10) & "我回行了"
.FetchSelectionFormula
.Action = 1
End With
- 水晶报表4.6的使用示例
- 水晶报表的使用:
- 水晶报表的使用
- 水晶报表的使用
- 水晶报表的使用技巧
- 水晶报表使用的例子
- 水晶报表的简单使用
- 水晶报表的简单使用
- .net水晶报表的使用
- 水晶报表的使用技巧
- 有关水晶报表的使用
- 水晶报表的使用【视频】
- vs2005水晶报表的使用
- vs2008 水晶报表的使用
- 水晶报表(子报表的使用)
- [水晶报表]水晶报表的使用经验和资料总结
- 演示水晶报表设计概念的官方示例报表列表
- 演示水晶报表设计概念的官方示例报表列表
- 以小博大 Java性能优化技巧集锦
- Hibernate实现无限子结点的树形目录
- Spring + Hibernate
- 实例讲解:Java中的SOAP技术
- 整合struts和hibernate开发向导
- 水晶报表4.6的使用示例
- why not better than her for English?
- 2005.01.13 工作感受
- Lor进展
- Log4J 最佳实践之全能配置文件
- Eclipse简介和插件开发
- WebControl 学习与制作指南
- Example #1: Struts with Hibernate
- DCG v1.3.5.50