本文介绍了在Windows应用程序中选择打印机作为默认打印机.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用以下代码弹出并选择网络中的打印机. 昏暗的新PrintDialog() 暗淡lsPrinter作为字符串 如果d.ShowDialog()= DialogResult.OK然后 lsPrinter = d.PrinterSettings.PrinterName, 如果结束 现在,我想将所选打印机设置为此应用程序的默认打印机.我该怎么做.
I am using below code to pop up and select the printer in the network. Dim d As New PrintDialog() dim lsPrinter as string If d.ShowDialog() = DialogResult.OK Then lsPrinter =d.PrinterSettings.PrinterName, end if Now i would like to set the selected printer as the default printer for this applicaton.how can i do it.
推荐答案vbcity/forums/t/68137.aspx [ ^ ] 检查此链接...:) vbcity/forums/t/68137.aspx[^] Check this link......:)
检查此 设置Windows默认打印机 [ ^ ] Check this Setting Windows default printer[^]
更多推荐
在Windows应用程序中选择打印机作为默认打印机.
发布评论