Forum Discussion
Print ANYTHING in StoryLine
I hope my unsophisticated (naïve ?) solution for the modern player is helpful... I used Owen's simple JavaScript with Christian's super helpful addition [document.body.style.zoom = .7; window.print();]. Then I added a layer with shapes to cover the onscreen print button. I triggered the cover layer to appear before the JavaScript and then to go away after 1 second. That lets me print what I want with the print button hidden - and I can leave the print button in a familiar place for the learner.
document.body.style.zoom = .7;
window.print();
Sherri, your java script works great for printing my certificates. However, when I return to the lesson after the printout, the screen is reduced to 70%. So I just added another line to return the display to normal:
document.body.style.zoom = .7;
window.print();
document.body.style.zoom = 1.0;
Thanks,
-Vic
- SherriSagers-ca4 years agoCommunity Member
Thanks Vic! I'm going to update my entry above to include your addition! I love that it's had so many contributors!