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.
- YeonhaKwak19 years agoCommunity Member
Can you tell me the detail about the trigger hiding print me button?
Thanks.
- Crystal-Horn9 years agoStaff
Hi Jenny! Just in case Steve is no longer subscribed to this thread, feel free to use the Contact Me button on his profile page to reach out and reference his comment!
- FelixFranke5 years agoCommunity Member
"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.