.NET: How to print files w/o opening them

前端 未结 6 832
长情又很酷
长情又很酷 2021-01-05 07:53

We have an application that basically archives files and we give the user the possibility to print these files. They can be .txt, .doc, .pdf, .jpg nothing fancy. Is there a

6条回答
  •  [愿得一人]
    2021-01-05 08:27

    How do you suggest Windows manage to print a file without sending it to an application that knows how to handle it?

    I don't think there is a way to do this, simply because Windows does not know what a pdf is (or a doc, or even a jpg).

    I'm afraid you're stuck with either what you have, or including a library into your application for each format that you wish to print.

提交回复
热议问题