VB 调出 打印 对话框,怎样做到点了 取消 按钮就不打印了
使用.ShowPrinter后,会出现选择界面,如下图:可是点了取消按钮后,依然打印,怎样才能不打印或者让取消按钮为灰色,不可用VB程序...
使用.ShowPrinter后,会出现选择界面,如下图:
可是点了取消按钮后,依然打印,怎样才能不打印
或者 让 取消 按钮 为灰色,不可用
VB程序 展开
可是点了取消按钮后,依然打印,怎样才能不打印
或者 让 取消 按钮 为灰色,不可用
VB程序 展开
2个回答
展开全部
To Enable or Disable Notifications of Completed Print Jobs
Click Start, and then click Printers and Faxes.
On the File menu, click Server Properties.
On the Advanced click the options you want to apply:
Show informational notifications for local printers. This option notifies users when a job is printed on a printer that is attached to this computer.
Show informational notifications for network printers. This option notifies users of this computer when a job is printed on a remote computer.
For client computers that are running versions of Windows earlier than Microsoft Windows 2000 that access the printers on this computer, there are additional configuration options to choose from:
Notify when remote documents are printed. This option sends a message to the user who sent a job to a printer that is attached this computer.
Notify computer, not user, when remote documents are printed. This option sends a message to the computer from which the print job was sent, regardless of which computer on which the sending user is currently logged on.
Click Start, and then click Printers and Faxes.
On the File menu, click Server Properties.
On the Advanced click the options you want to apply:
Show informational notifications for local printers. This option notifies users when a job is printed on a printer that is attached to this computer.
Show informational notifications for network printers. This option notifies users of this computer when a job is printed on a remote computer.
For client computers that are running versions of Windows earlier than Microsoft Windows 2000 that access the printers on this computer, there are additional configuration options to choose from:
Notify when remote documents are printed. This option sends a message to the user who sent a job to a printer that is attached this computer.
Notify computer, not user, when remote documents are printed. This option sends a message to the computer from which the print job was sent, regardless of which computer on which the sending user is currently logged on.
追问
???没看懂呀
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Command1_Click()
Dim i As Integer
Dim str As String
' 设置打印“取消”为 True
CommonDialog1.CancelError = True'必须先调出本控件
On Error GoTo Er
CommonDialog1.ShowPrinter '调用打印机窗口
str = "这里是打印内容"
Printer.FontName = "黑体"
Printer.FontSize = 26
For i = 1 To 5
Printer.Print str
Printer.Print "第 " & Printer.Page & "页"
Printer.NewPage
Next
Printer.EndDoc
Exit Sub
Er:
MsgBox "用户取消打印"
Exit Sub
End Sub
Dim i As Integer
Dim str As String
' 设置打印“取消”为 True
CommonDialog1.CancelError = True'必须先调出本控件
On Error GoTo Er
CommonDialog1.ShowPrinter '调用打印机窗口
str = "这里是打印内容"
Printer.FontName = "黑体"
Printer.FontSize = 26
For i = 1 To 5
Printer.Print str
Printer.Print "第 " & Printer.Page & "页"
Printer.NewPage
Next
Printer.EndDoc
Exit Sub
Er:
MsgBox "用户取消打印"
Exit Sub
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询