How would I go about setting up a link/button which, when clicked, it printed out one of my rules list, which I have not only as a page on my website, but also as a .RTF file on my server? I want it to print out the .RTF file.
@mainenotarynetJun 15.2008 — #<?php echo '<a href="location of the ruleslist.rtf"> <img src="location of the image to use as the button" alt="noloadimg desc" title="desc of image or like click Here for the rules" width="imgsizewide" height="imgsizehigh" /></a>' ?>
The above will open the RTF file if your visitor wants to print it they have to do it manually via a print button that is usable on the users computer when the RTF loads.
Its like opening a PDF file Browsers use adobe acrobat reader to display the file and a new menu appears in the screen with a save and a print button.
Browsers try to open files within the browser itself if it can read it such as html, txt, php, etc.
When it can't, it searches for a helper program to open it, like .doc opens in MS Word on a PC, .xls opens in MS Excel on a PC etc.
MS Word can read RTF files so as long as they have word they are ok.
@NogDogJun 16.2008 — #Nope: PHP runs on the server, so the only way it could print it would be to send it to a printer on the server's local network; but it has no knowledge of nor access to the user's printer. (If it did, imagine the annoying things hackers could do to make your printer use up paper and ink. :eek: )