2个回答
展开全部
Private Sub command1_Click()
Dim kCDl
On Error Resume Next
CommonDialog1.CancelError = True
CommonDialog1.ShowPrinter
'MsgBox CommonDialog1.HelpKey
If Err.Number <> 0 Then Exit Sub '如果异常退出过程
For kCDl = 1 To CommonDialog1.Copies
Printer.Print picture1
Printer.NewPage
Next
MsgBox "打印完毕!", , "提示"
End Sub
Dim kCDl
On Error Resume Next
CommonDialog1.CancelError = True
CommonDialog1.ShowPrinter
'MsgBox CommonDialog1.HelpKey
If Err.Number <> 0 Then Exit Sub '如果异常退出过程
For kCDl = 1 To CommonDialog1.Copies
Printer.Print picture1
Printer.NewPage
Next
MsgBox "打印完毕!", , "提示"
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询