Programmatically print to a PDF printer [closed]

会有一股神秘感。 提交于 2019-12-02 02:57:41

For any of you out there attempting to convert XPS to PDF using an open source means, I was able to successfully do so using PDFSharp version 1.31. It successfully upgraded to .NET 4.5 and I included the PdfSharp.Xps project into my solution. Once you include all the references, you only need a single line to link to your XPS file.

XpsConverter.Convert("D:\\Example\\test.xps");

Note: There are also other constructors available but I used the most simplistic one in my example.

Hope this helps!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!