Printing Question

I want to print a dynamically loaded text file using a button. The help files don’t really offer me any solutions.
I hoped the forums would.
Anyone?