I need to print an XPS document directly to a Printer on a Windows XP platform. I'm using the Microsoft XPSPrinter (from C#) similar as in this example here. Everything works fine on Windows 7, however when printing on WinXP I get this:
The problem is that on another WinXP installation, printing the exact same document, works "occasionally" (yep... -.-) and I'm not able to understand what causes it to work/break...
Some background info:
- I print from a ConsoleApplication using .Net 4.0 in 32bit mode
- The XPS document is generated by Aspose.Words on an IIS web server
- The XPS document is written to a temporary file which is being passed to the PrintTicket..
- The XPS document in the temporary file location seems to be perfectly fine when opening it with the XPS viewer...so at least it is correctly downloaded from the server and saved to the FS
- Always printing the same document: Works on Win7, occasionally works on one WinXP, never works on another WinXP (so there must be something different...but what??? Ideas??)
- On the "working" XP machine, it often also prints partially correct, meaning only some of the symbols in the middle are wrong
- Always works when the DLL containing the printing code is executed from an ActiveX (don't ask)...never works on that machine when executing the same DLL from a ConsoleApplication.
Trials so far which didn't work:
- Hotfix, but wasn't installable on WinXP as the setup indicated there isn't anything install, the fix would apply to
- Follow some instructions of this guy, having a similar problem but I'm not able to execute his sample app as I don't have
XpsPrint.dll
on my WinXP system installed. - Font problem?? I'm using Arial, so it should be fine and the font should be present on the target system. (Also, why would it print then...)
Tried so many stuff that I'm a little lost what else I could try. Appreciate any ideas what could be the cause for such odd printing of the documents.