How to do it:
1. First, create a separate text readable (.txt) file containing the information you wish to be printed when the visitor clicks on the print button.
Or better yet, convert your document into a PDF format for free - and create your own .pdf document!
2. Insert the following code in an INSERT > HTML CODE function on your page:
<LINK REL="alternate" MEDIA="print" HREF="^GEMDIR/myfile.txt">
Or, if inserting a PDF document,use the following slightly expanded version of the LINK command
<LINK REL= "alternative" MEDIA="print" HREF= "^GEMDIR/myfile.pdf" TYPE= "application/postscript">
3. Then click on the 'Files for this Component' button, and locate and insert the appropriate file (myfile.txt or myfile.pdf in the examples above)
4. Save, publish and test!
|