Try this link. I was able to create a text box in my app with the =OSUser() function.
I have not tried this, but you should be able to create a variable that you can add to your Nprinting template.
Thanks again for your input... :-)
No, it is not for security / auditing purposes.. I believe that the customer wants to have the name on if the person wants to make a hard copy of the report.. So that everyone can see the name on the paper...
Anyway... I tried with the OSuser().. First I tried creating a variable :
vNprinting that had the : =osuser() function ... That works in the GUI, but the Nprinting app, shows the Nprinting service account user instead of the user that acutally initiated the print...
Do you have another suggestion ?
That would make logical sense, because when you are using On-Demand, it is your Nprinting User that is actually opening and using the qvw in the Service. Since you are doing this On-Demand, you could make your user select their name from a list box which would then go to a printable field in your Nprinting Template. That would not be as automated, but it would get the job done. Depending on your number of users, you could create a small inline table in your script. NPUSERS is your list box field that you would add to your template.
[Nprinting Report Users]:
Try that to see if it will work for you or use another existing field that you already have that would identify the user.