camden6hn.dsr

来自「用于电子行业打印复杂报表格式和不干胶标签」· DSR 代码 · 共 62 行

DSR
62
字号
VERSION 5.00
Begin {82282820-C017-11D0-A87C-00A0C90F29FC} camden6hn 
   Caption         =   "ActiveReport1"
   ClientHeight    =   5550
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   10605
   StartUpPosition =   2  '屏幕中心
   _ExtentX        =   18706
   _ExtentY        =   9790
   SectionData     =   "camden6hn.dsx":0000
End
Attribute VB_Name = "camden6hn"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub ActiveReport_Initialize()
   camden6hn.Printer.PaperSize = bgjpapersize
  If camprintflag = 1 Then
    camden6hn.Printer.PrintDialog
  End If
End Sub

Private Sub ActiveReport_ReportStart()
 ' Printer.PaperWidth = 106 * stunit  '纸张高
 ' Printer.PaperHeight = 51 * stunit   '纸张宽
 ' camden6hn.Printer.PaperSize = bgjpapersize
 ' camden6hn.Printer.Copies = camprint
 If camflag = 2 Then
    Label17.Visible = True
    Label18.Visible = True
    Label27.Visible = True
    Label28.Visible = True
 End If
End Sub

Private Sub Detail_AfterPrint()
  camprint = 0
End Sub

Private Sub setjpnull()
Dim i As Integer
 For i = 1 To 14  '清空数据
   Me.Detail.Controls("Field" & i).Text = ""
 Next

 For i = 0 To 1
   Me.Detail.Controls("Field" & 1 + i * 7).Text = Trim(camab)
   Me.Detail.Controls("Field" & 2 + i * 7).Text = Trim(campn)
   Me.Detail.Controls("Field" & 3 + i * 7).Text = Trim(camtype)
   Me.Detail.Controls("Field" & 4 + i * 7).Text = Trim(camratings)
   Me.Detail.Controls("Field" & 5 + i * 7).Text = Trim(camqty)
   Me.Detail.Controls("Field" & 6 + i * 7).Text = Trim(camlotno)
   Me.Detail.Controls("Field" & 7 + i * 7).Text = Trim(camdate)
 Next
End Sub

Private Sub Detail_Format()
  Call setjpnull
End Sub

⌨️ 快捷键说明

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