📄 frmviewer.frm
字号:
VERSION 5.00
Object = "{8767A745-088E-4CA6-8594-073D6D2DE57A}#9.2#0"; "crviewer9.dll"
Begin VB.Form frmViewer
Caption = "Xtreme Orders Report"
ClientHeight = 5475
ClientLeft = 60
ClientTop = 345
ClientWidth = 8055
LinkTopic = "Form1"
ScaleHeight = 5475
ScaleWidth = 8055
StartUpPosition = 3 'Windows Default
Begin CRVIEWER9LibCtl.CRViewer9 CRViewer91
Height = 5055
Left = 120
TabIndex = 0
Top = 120
Width = 7815
lastProp = 500
_cx = 13785
_cy = 8916
DisplayGroupTree= -1 'True
DisplayToolbar = -1 'True
EnableGroupTree = -1 'True
EnableNavigationControls= -1 'True
EnableStopButton= -1 'True
EnablePrintButton= -1 'True
EnableZoomControl= -1 'True
EnableCloseButton= -1 'True
EnableProgressControl= -1 'True
EnableSearchControl= -1 'True
EnableRefreshButton= -1 'True
EnableDrillDown = -1 'True
EnableAnimationControl= -1 'True
EnableSelectExpertButton= 0 'False
EnableToolbar = -1 'True
DisplayBorder = -1 'True
DisplayTabs = -1 'True
DisplayBackgroundEdge= -1 'True
SelectionFormula= ""
EnablePopupMenu = -1 'True
EnableExportButton= 0 'False
EnableSearchExpertButton= 0 'False
EnableHelpButton= 0 'False
LaunchHTTPHyperlinksInNewBrowser= -1 'True
End
End
Attribute VB_Name = "frmViewer"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub CRViewer91_CloseButtonClicked(UseDefault As Boolean)
If MsgBox("Close '" & _
CRViewer91.GetViewPath(CRViewer91.ActiveViewIndex)(UBound(CRViewer91.GetViewPath(CRViewer91.ActiveViewIndex))) _
& "' Drill-Down tab?", vbQuestion + vbYesNo, "Xtreme Order Report") = vbNo Then
UseDefault = False
End If 'MsgBox("Close...
End Sub
Private Sub CRViewer91_DrillOnGroup(GroupNameList As Variant, ByVal DrillType As CRVIEWER9LibCtl.CRDrillType, UseDefault As Boolean)
If MsgBox("Are you sure you want to drill down on '" & _
GroupNameList(UBound(GroupNameList)) & _
"'?", vbQuestion + vbYesNo, "Xtreme Orders Report") = vbNo Then
UseDefault = False
End If 'MsgBox("Are you sure you want to drill down...
End Sub
Private Sub CRViewer91_HelpButtonClicked()
MsgBox "Your Report Viewer custom help goes here"
End Sub
Private Sub Form_Load()
On Error GoTo Form_Load_Error
' Log On to database
'Report.Database.LogOnServer "PDSODBC.DLL", "XTREME SQL Server", "XTREME", "DBReader", "DBReader"
'Report.Database.Tables(1).ConnectionProperties("User ID") = "DBReader"
'Report.Database.Tables(1).ConnectionProperties("Password") = "DBReader"
CRViewer91.ReportSource = Report
CRViewer91.EnablePrintButton = False
CRViewer91.EnableHelpButton = True
CRViewer91.EnableAnimationCtrl = True
If frmXtremeOrders.chkSummary Then
CRViewer91.EnableDrillDown = True
Else
CRViewer91.EnableDrillDown = False
End If 'frmXtremeOrders.chkSummary
CRViewer91.ViewReport
Exit Sub
Form_Load_Error:
If Err.Number = 382 Then
MsgBox "You tried to set a property that's not supported. Wait for the next version of the RDC!", vbCritical, "Xtreme Orders Report"
Else
MsgBox "Error " & Err.Number & " - " & Err.Description, vbCritical, "Xtreme Orders Report"
End If 'Err.Number = 382
End Sub
Private Sub Form_Resize()
CRViewer91.Top = 0
CRViewer91.Left = 0
CRViewer91.Height = ScaleHeight
CRViewer91.Width = ScaleWidth
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -