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

📄 form1.frm

📁 Barcode print
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Print Barcode"
   ClientHeight    =   3345
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6975
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3345
   ScaleWidth      =   6975
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "Print Barcode"
      Height          =   495
      Left            =   4680
      TabIndex        =   6
      Top             =   2760
      Width           =   2055
   End
   Begin VB.Frame Frame1 
      Height          =   135
      Left            =   0
      TabIndex        =   5
      Top             =   2400
      Width           =   6975
   End
   Begin VB.TextBox Text2 
      Height          =   1575
      Left            =   1680
      ScrollBars      =   3  'Both
      TabIndex        =   2
      Top             =   720
      Width           =   5175
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Build ZPLII Code"
      Height          =   495
      Left            =   2280
      TabIndex        =   1
      Top             =   2760
      Width           =   2055
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1680
      TabIndex        =   0
      Text            =   "YA21G4EC0000289"
      Top             =   120
      Width           =   5175
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "ZPLII Code:"
      Height          =   180
      Left            =   600
      TabIndex        =   4
      Top             =   720
      Width           =   1080
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "Barcode Content:"
      Height          =   180
      Left            =   150
      TabIndex        =   3
      Top             =   240
      Width           =   1530
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command2_Click()
    Dim strOut As String
    strOut = "这是直接发送到打印机端口的字符串"
    '打开打印机端口,其中的”LPT1:”可能需要根据你的打印机设置而改变
    Open "LPT1:" For Binary Access Write As #1
    'Open "109.254.254" For Binary Access Write As #1
    '发送给打印机,注意语句的最后一个参数必须是变量
    Put #1, , strOut
    '关闭打印机端口
    Close #1
End Sub

⌨️ 快捷键说明

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