再水晶报表软件中做好的报表,为什么在VB中调用的时候数据显示不出来那?纳闷
解决方案 »
- 代码优化:如何用winsock实现对PLC数据的"实时"采集?
- 在VB中 往form中添加控件后发生问题
- 如何为vb播放器编写个类似千千静听的音效控制?
- 关于: ByRef Byte() 作参数
- 急!!!各位看一下,多谢!
- 有感而发
- 如何控制MSHFlexGrid1 指向的记录和记录集rsdata 指向的记录是同一条.
- 怎样才能在DataGrid中显示出数据?
- 急求BMP压缩成JPG格式程序算法~~~!!!!!!!!
- 如何将Print 1/2的值“.5”输出为“0.5”?
- **************找到工作了,有两个不错的公司要我,我该如何挑选,那个对我更有前途,大家帮帮忙**************
- 感谢CSDN,散分。自学VB的爱好者进来看看我用半年时间弄的小东东,源码开放。
rsImport.Open strPublicSql, strPubConnect, adOpenKeyset, adLockReadOnly
If rsImport.EOF Then
rsImport.Close
Exit Sub
End Ifcustom_BallGoinReport.Show 1
rsImport.Close
--------------------------------------------------Option Explicit
Private Sub Form_Load()
Dim strPathName As String, strReportName As String, strSqlPath As String
Dim rsPath As New ADODB.Recordset
strSqlPath = "select mean from Parameter_tab where parameter_name='tabOrderFormReport'"
rsPath.Open strSqlPath, strPubConnect, adOpenKeyset, adLockReadOnly
If Not rsPath.EOF Then
strPathName = rsPath.Fields(0).Value
Else
MsgBox "§ä¤£¨ì³øªí¸ô®|¡A½Ð»P¸ê°TÁp¨t¡I", vbCritical, "´£¿ô±z"
Exit Sub
End If
strReportName = "custom_tabBallGoinReport.rpt"
Screen.MousePointer = 11
Set objReport = objApp.OpenReport(strPathName & strReportName, 1)
'' Set objReport = objApp.OpenReport("G:\Report\" & strReportName, 1)
objReport.Database.SetDataSource rsImport
objReport.ReadRecords
CRViewer91.ReportSource = objReport
CRViewer91.ViewReport
Screen.MousePointer = 0
End SubPrivate Sub Form_Resize()
CRViewer91.Top = 0
CRViewer91.Left = 0
CRViewer91.Height = ScaleHeight
CRViewer91.Width = ScaleWidth
End Sub