在Windows应用程序中选择打印机作为默认打印机.

编程入门 行业动态 更新时间:2024-10-23 12:31:11
本文介绍了在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应用程序中选择打印机作为默认打印机.

本文发布于:2023-06-05 19:13:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/526464.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:打印机   应用程序   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!