📄 fz6hwpnrppic.dsr
字号:
VERSION 5.00
Begin {82282820-C017-11D0-A87C-00A0C90F29FC} fz6hwpnrppic
Caption = "ActiveReport1"
ClientHeight = 5895
ClientLeft = 60
ClientTop = 345
ClientWidth = 11595
StartUpPosition = 2 '屏幕中心
_ExtentX = 20452
_ExtentY = 10398
SectionData = "fz6hwpnrppic.dsx":0000
End
Attribute VB_Name = "fz6hwpnrppic"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rsTempcar As ADODB.Recordset
Dim abjctmp As String
Dim picheight As Variant '记录
Private Sub setimage() '给image赋值
Dim n, m, i As Integer
If bq6habnum = 1 Then
Image1.Left = 90: Image8.Left = 3150
End If
If bq6habnum = 2 Then
Image1.Left = 90: Image2.Left = 610
Image8.Left = 3150: Image9.Left = 3670
End If
If bq6habnum = 3 Then
Image1.Left = 90: Image2.Left = 610: Image3.Left = 1130
Image8.Left = 3150: Image9.Left = 3670: Image10.Left = 4190
End If
If bq6habnum = 4 Then
Image1.Left = 90: Image2.Left = 555: Image3.Left = 1020: Image4.Left = 1485
Image8.Left = 3150: Image9.Left = 3615: Image10.Left = 4080: Image11.Left = 4545
End If
If bq6habnum = 5 Then
Image1.Left = 90: Image2.Left = 535: Image3.Left = 980: Image4.Left = 1425: Image5.Left = 1870
Image8.Left = 3150: Image9.Left = 3595: Image10.Left = 4040: Image11.Left = 4485: Image12.Left = 4930
End If
For i = 1 To 2
For n = 0 To bq6habnum - 1
m = n + (i - 1) * 7 + 1
Call loadpic(bq6habarray(n))
Me.Detail.Controls("Image" & m).Picture = LoadPicture(abjctmp)
Me.Detail.Controls("Image" & m).SizeMode = 1
Me.Detail.Controls("Image" & m).Width = picwidth * pubabpercent
Me.Detail.Controls("Image" & m).Height = picheight * pubabpercent
Me.Detail.Controls("Image" & m).PictureAlignment = 2
Next
Next
End Sub
Private Sub loadpic(abjcstr As String)
'调安标
Dim ajt As String
abjctmp = ""
ajt = "无"
Set rsTempcar = New ADODB.Recordset '初始化数据库
rsTempcar.CursorType = adOpenKeyset
rsTempcar.CursorLocation = adUseClient
rsTempcar.LockType = adLockOptimistic
rsTempcar.Open "select * from 安标表 where 安标简称='" & ajt & "'", cnSys
If abjcstr <> "" Then
rsTempcar.Close
rsTempcar.Open "Select * From 安标表 Where 安标简称 = '" & abjcstr & "'", cnSys
Do While Not rsTempcar.EOF
abjctmp = pcpath & Trim(rsTempcar("安标路径"))
picwidth = rsTempcar("安标宽度") * stunit
picheight = rsTempcar("安标高度") * stunit
rsTempcar.MoveNext
Loop
End If
End Sub
Private Sub ActiveReport_Initialize()
fz6hwpnrppic.Printer.PaperSize = bgjpapersize
If bq6hprintflag = 1 Then
fz6hwpnrppic.Printer.PrintDialog
End If
End Sub
Private Sub ActiveReport_ReportStart()
' Printer.PaperWidth = 106 * stunit '纸张高
' Printer.PaperHeight = 51 * stunit '纸张宽
' fz6hwpn.Printer.PaperSize = bgjpapersize
'2007.01.12 cancel the code
'If bq6habnum >= 4 Then
' Field5.Left = 15
' Field5.Width = 2790
' Field12.Left = 3090
' Field12.Width = 2790
' Else
' Field5.Left = 1065
' Field5.Width = 1750
' Field12.Left = 4125
' Field12.Width = 1750
' End If
End Sub
Private Sub Detail_AfterPrint()
bq6hprint = 0
End Sub
Private Sub setjpnull()
Dim i As Integer
For i = 1 To 14 '清空数据
Me.Detail.Controls("Field" & i).Text = ""
Next '
'2007.01.12 add the code
For i = 1 To 14
Me.Detail.Controls("Image" & i).Picture = LoadPicture()
Next
For i = 0 To 1
'6#封装标签不显示 FUSE
'Me.Detail.Controls("Field" & 1 + i * 7).Text = bq6htype & " " & bq6hcc & " " & "FUSE"
If bq6hcc = "" Then
Me.Detail.Controls("Field" & 1 + i * 7).Text = bq6htype
Else
Me.Detail.Controls("Field" & 1 + i * 7).Text = bq6htype & " " & bq6hcc & " " & "FUSE"
End If
Me.Detail.Controls("Field" & 2 + i * 7).Text = bq6hratings
Me.Detail.Controls("Field" & 3 + i * 7).Text = bq6hrating & " " & bq6hinterrupting
' Me.Detail.Controls("Field" & 4 + i * 7).Text = bq6hpn
' Me.Detail.Controls("Field" & 5 + i * 7).Text = bq6hab 2007.01.12 cancel the code
Me.Detail.Controls("Field" & 6 + i * 7).Text = bq6hqty
Me.Detail.Controls("Field" & 7 + i * 7).Text = bq6hlotno
Next
End Sub
Private Sub Detail_Format()
Call setjpnull
Call setimage
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -