Send document to printer with C#

前端 未结 7 1548
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 12:07

I\'ve been given a requirement for an internal web application to send documents to a printer transparently. The idea would be that the user can select their nearest printe

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 12:49

    The PrintDocument documentation contains a detailed example of printing from C#. The printer name should point to a local printer or a printer share. See printing-to-a-pdf-printer-programatically for printing PDF docs.

提交回复
热议问题