2

I read that the XPS printer in Windows 8 produces OpenXPS (.oxps) files whereas its counterpart in earlier Windows versions produce XPS (.xps) files. So printing XPS files under Windows 8 implies a compatibility issue. Fair enough. But, what type of file does the CreateXpsDocumentWriter method create?

Does it use the XPS printer? If yes, how can you detect which XPS/OXPS setting the printer has? Or is it possible to choose XPS/OXPS via an API?

snollygolly
  • 1,858
  • 2
  • 17
  • 31
l33t
  • 18,692
  • 16
  • 103
  • 180
  • `what type of file does the CreateXpsDocumentWriter method create?` What do you get when you try this? – admdrew Feb 19 '14 at 23:24
  • That's what I asked above. How can I know what it outputs? When I try this, I get an XPS... or it could be an OXPS. I can examine its contents, but I wouldn't know what to look for. – l33t Feb 19 '14 at 23:28
  • @admdrew is it possible that the OP has no Windows 8 at hand? Like many others too, so trying is not possible for everyone (like me). I also want to know what gets created – Firo Mar 12 '14 at 07:57
  • @Firo To be fair, l33t did say `When I try this`, so he/she probably has access to Win8. – admdrew Mar 12 '14 at 14:37

1 Answers1

-1

If the extension is oxps, chances are that you got an openxps. try renaming it to .zip. If it's openXPS, you will be able to view the contained parts.

According to the remarks in the XpsDocument class description, you will get XPS, not OpenXPS ("For more information about XPS see the XML Paper Specification (XPS) available for download at http://go.microsoft.com/fwlink/?LinkID=65761.")

eFloh
  • 2,098
  • 20
  • 24