How to have a button which prints a file from the server.