博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年1月4日

摘要: 使用PrintDialog控件,直接调用如printDialog1.ShowDialog();方法,就会出现打印对话框,列出本地的打印机了。 下面的代码是用PrinterSettings读出所有本地安装的打印机并添加到列表框printerList中: PrintDocument prtdoc = new PrintDocument(); string strDefaultPri... 阅读全文

posted @ 2011-01-04 17:31 汪日平 阅读(740) 评论(0) 推荐(0)