I know the code to print the page the user is looking at:
I'm pretty sure that the security in browsers disables you from actually printing an attached file in any kind of automated way. I think the only way you could get around it would be to have someone either download the file themselves or open up the file in a new window with the print button like above.
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
You have not yet logged in, or registered properly as a member
You are a member, but no longer have posting rights.
This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.