Can I do this? Everything I've found talks about printing the whole web page, maybe removing a few elements, but what I want is much more basic that that. I'm not interested in printing any of the html at all, and I'd prefer not to go via a "printer friendly" version for the user to deal with if possible.
I'm not worried about it bringing up whatever the standard print dialogs are on their system, in fact I'm highly delighted about it
The file contents are displayed in a textarea which has scrollbars at this point. I need to print the whole file contents, not just the visible area. I tried with a css file which only prints the textarea, and it almost works, but I only get the bit of the file which was visible on screen.
I also tried onclick="displayfile.rows=500;window.print();displayfile.rows=20;return false;" but it didn't help. I still just get the 20 rows on the printout.
Any suggestions?
(edit: displayfile is the id of the textarea).