Forum Discussion
Print button - javascript
To the question about not printing the "print me" button, you might try adding a trigger to hide the print button before calling the JavaScript to print the page.
To the question about printing to landscape orientation - unfortunately, the browser interface through JavaScript doesn't offer any controls of the print dialog options. You can ask the browser to print the page but that's about it. There are some tricks you can run if you have some Flash authoring / ActionScript skills and access to Flash but short of that you're stuck either 1) asking the user to change the print settings to landscape or 2) living with the portrait default.
"To the question about not printing the "print me" button, you might try adding a trigger to hide the print button before calling the JavaScript to print the page. "
Haha, that made me laugh, it's so simple. Just tried it out, it actually works. Thank you! The order of the triggers is essential though, as described.
Sorry old thread but this so ingeniously simple I had to leave my kudos.