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

前端 未结 6 836
长情又很酷
长情又很酷 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:32

    I have to agree with other answers in that you can't print it without opening it.

    The only way I think you may be able to get around this is if you had a straight-up postscript file, and a directly-attached postscript-compatible printer.

    In that case you could just dump the .ps file to the LPT port and the printer would process it correctly.

提交回复
热议问题