更新时间:2023-12-04 11:48:46
通常,您不需要直接获取已连接打印机的列表.用户在打印对话框中获取它们.在WPF中,这可以是类System.Windows.Controls.PrintDialog
:
http://msdn.microsoft.com/en-us/library/system. windows.controls.printdialog.aspx [ ^ ].
WPF打印的整个主题是一个相对较大的主题.有完整的MSDN文档和文章数量.看看:
http://bit.ly/T5rUnw [ ^ ].
祝你好运,—SA
Normally, you don''t need to get the list of connected printers directly. The user gets them in the print dialog. In WPF, this can be the classSystem.Windows.Controls.PrintDialog
:
http://msdn.microsoft.com/en-us/library/system.windows.controls.printdialog.aspx[^].
The whole topic of WPF printing is relatively big topic. There is comprehensive MSDN documentation and number of articles. Just look:
http://bit.ly/T5rUnw[^].
Good luck,—SA