⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmprint.frm

📁 三角形闭合差计算程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Frmprint 
   Caption         =   "成果报表打印"
   ClientHeight    =   4710
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6645
   LinkTopic       =   "Form1"
   ScaleHeight     =   4710
   ScaleWidth      =   6645
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Cmdexit 
      Caption         =   "退出"
      Height          =   615
      Left            =   4920
      TabIndex        =   3
      Top             =   3120
      Width           =   1215
   End
   Begin VB.CommandButton Cmdprint 
      Caption         =   "打印"
      Height          =   615
      Left            =   3360
      TabIndex        =   2
      Top             =   3120
      Width           =   1215
   End
   Begin VB.ComboBox cboSelType 
      Height          =   300
      Left            =   3240
      TabIndex        =   1
      Top             =   600
      Width           =   2055
   End
   Begin VB.Label Label1 
      Caption         =   "请选择打印内容:"
      Height          =   495
      Left            =   840
      TabIndex        =   0
      Top             =   600
      Width           =   1575
   End
End
Attribute VB_Name = "frmprint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim StrSelect As String
Dim idx As Integer
Private Sub Cmdexit_Click()
    Unload frmprint
End Sub
Private Sub cboSelType_Click()
     StrSelect = cboSelType.Text
     idx = cboSelType.ListIndex
     If idx < 0 Then idx = 0
End Sub
Private Sub CmdPrint_Click()
    Dim i As Integer
    Dim strtmp As String
    Dim ReportPath As String
    Dim arecord As Recordset
    
    If idx = 0 Then
       ReportPath = App.path + "\高程成果表.rpt"
    End If
    If idx = 1 Then
       ReportPath = App.path + "\观测成果表.rpt"
    End If
    CrystalReport1.ReportFileName = ReportPath
    CrystalReport1.DataFiles(0) = g_ProjectFile
    CrystalReport1.WindowState = crptMaximized
    CrystalReport1.Action = 1
'     Unload FrmPrint
End Sub

Private Sub Form_Load()
    Dim i As Integer
    Me.Left = (Screen.Width - Me.Width) / 2
    Me.Top = (Screen.Height - Me.Height) / 2
    cboSelType.Text = cboSelType.List(0)
    StrSelect = cboSelType.List(0)
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -