That code does nothing special to get it in xps or anything. It shows simple HTML so you could print via the browser dialog. So it's up to the browser to support printing in that format.