How to print a PDF with C#

前端 未结 11 582
抹茶落季
抹茶落季 2020-12-14 17:58

I´ve trying to solve this problem for nearly 2 days. There are a lot of more or fewer good solutions on the net, but not a single one fits my task perfectly.

11条回答
  •  遥遥无期
    2020-12-14 18:25

    What about using the PrintDocument class?

    http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx

    You just need to pass the filename of the file you want to print (based on the example).

    HTH

提交回复
热议问题