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

📄 frmprint.frm

📁 用于电子行业打印复杂报表格式和不干胶标签
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "Comdlg32.ocx"
Begin VB.Form frmprint 
   Caption         =   "获取当前打印机纸张类型"
   ClientHeight    =   1770
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5130
   LinkTopic       =   "Form1"
   ScaleHeight     =   1770
   ScaleWidth      =   5130
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   4050
      TabIndex        =   4
      Top             =   840
      Visible         =   0   'False
      Width           =   1005
   End
   Begin MSComDlg.CommonDialog co 
      Left            =   3360
      Top             =   930
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command2 
      Caption         =   "Command2"
      Height          =   345
      Left            =   4020
      TabIndex        =   3
      Top             =   1110
      Visible         =   0   'False
      Width           =   945
   End
   Begin VB.TextBox Text1 
      Height          =   315
      Left            =   2490
      TabIndex        =   2
      Top             =   330
      Width           =   1125
   End
   Begin VB.CommandButton Command1 
      Caption         =   "提取数据"
      Height          =   375
      Left            =   1650
      TabIndex        =   1
      Top             =   1110
      Width           =   1065
   End
   Begin VB.Label Label1 
      Caption         =   "当前打印机纸张类型:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   345
      Left            =   390
      TabIndex        =   0
      Top             =   330
      Width           =   2115
   End
End
Attribute VB_Name = "frmprint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  Text1.Text = CStr(Printer.PaperSize)
End Sub

Private Sub Command2_Click()
 ' co.ShowPrinter
 If Trim(Text2.Text) <> "" Then
   Printer.PaperSize = Val(vFldVal(Trim(Text2.Text)))
 End If
End Sub

⌨️ 快捷键说明

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