Does anyone know if there is a simple way to include the username of the printing user somewhere accessible either in the XPS package or in any header in the data stream from the driver when using XPSDrv? By using a filter in the filter pipeline (even though it is not simple in my opinion)? By reading TCP/IP header values? I have googled my fingers short trying find a reasonable solution.
Simple? No, not really. Your best bet is probably to modify a filter in your XPS driver to do the following:
This is all just a starting point. I suspect you're going to need to delve into the details of how an XPS driver works in order to make this a reliable solution.