I am attempting to print Word documents that have been created by Aspose.Words in a service environment.
I am using the XPSPrintHelper code you have published in your docs and online. My problem is that my documents print perfectly when the code is running inside an interactive process (with a logged-on user session), but when printing from a Windows Service (or a service hosted in IIS) the documents come out with nothing but garbage characters.
I have reproduced this problem on both Windows Server 2008 R2 and on Win 7 64, and on 2 different Lexmark printers. It does not appear to matter what text is in the document – even a very simple 1 paragraph document will reproduce the problem.
I am using version 10.3 of Aspose.Words (though the problem was evident in earlier versions also).
I have an extremely simple Windows Service solution that repros it if that would help you.