Forum Discussion
Print ANYTHING in StoryLine
By adding a new tab in the player properties panel and assigning it to execute the "window.print();" JavaScript, you can allow your participants to print any/every slide in your StoryLine projects including "Notes" or "Certificate" slides! No need to create a complex JavaScript course certificate solution, simply build a beautiful slide and let your users print it directly from the StoryLine player!
For SL 3 and 360 users, you can also move, reformat, hide, and reveal the button so you can take control over what users can print.
I've included the screen shots I used in the video in the attached Word document along with the JavaScript code snippets and an SL3 .story file.
206 Replies
- SteveNixon-af38Community Member
Hi Jeffery, I am trying this now and have problems printing from Edge. I would be grateful to know if you have any more details on the browser issues.
Best, Steve
- JeffreyRileyCommunity Member
Steve,
To be honest, I did not solve printing from Edge. I have told my clients to use either Firefox or Chrome and that has been working. It looks like from comments in the community the results of printing from Edge are mixed. Wish I had a better answer.
Jeffrey Riley
- SteveNixon-af38Community Member
Thanks Jeffery, I just hate saying "you can print this slide but...." in a lesson.
Best, Steve
- MalcolmReid-217Community Member
Hi Owen ... just looked at your tutorial on getting the print button to appear at the bottom of the screen... Great Job!! Two questions:
1. It appears that you would need to trigger the "Hide" script... $("#tab-customlink").hide(); ... on every screen except the one you want to print if you don't want the Player print option to appear on the other screens. Is that correct?
2. I also can not make it work in IE .... any ideas on what settings to check? Thank You!!
-Malcolm
- AnkitBankar-d7fCommunity Member
Print is not working in IE 11.
- TracyParishSuper Hero
I keep coming back to this again and again. Such a useful tip. Thanks Owen.
- BruceRobertsCommunity Member
Hi Owen thanks for the great tip. I tried your example package. When published in SL3 as HTML5 with Flash fallback (and vice versa), I can see it working as a Flash version, but not as HTML5 in IE. No joy at all with Chrome as it does not work with HTML5 and the Flash version gives me a blank page.
To add to my challenges, "window.print()" works fine to run as Javascript, but stretches to fit, distorting the image. Any suggestions would be hugely helpful - thanks.
- OwenHoltSuper Hero
I am publishing both from SL3 and 360 with HTML5 and the print function is still working for me. I am primarily testing in chrome.
- BruceRobertsCommunity Member
Hi Owen,
I've published your example to Articulate TempShare. It would be really useful to know if this works for you - if you could possibly spare the time?
If it doesn't , it's my SL3 installation mucking up your example.
If it does work for you, it's probably something like my browser settings.(These links will work until 22/06/2018)
HTML5 version
Flash version:
Cheers!
- OwenHoltSuper Hero
It is working for me in Chrome and Edge.
There are a couple of added bits of JS functionality in the file that work in HTML5 but not flash. The 1st bit of code, finds the tab you added, moves it to the bottom of the player, and re-formats it to look like the other lower player buttons. The next code, hides the button. If you click the character, the button is revealed. If you click the text bubble, the button is hidden again.
Those extra bits aren't required, I was just teaching myself how to hack some of the html5 player elements. Really, all anyone needs to do to add the print functionality to any of their projects is the following:
1) Click Story View
2) Select Player
3) Under the Player Tabs list, click the "New" button
4) Add any name you want and choose your alignment. I typically call it "Print Window".
5) Select the action "Execute JavaScript and paste the following line of code:
window.print();- BruceRobertsCommunity Member
Thanks for checking Owen. I like the player hacks.
I think I must have browser issues, so I'll go and check out what's happening - cheers.
- TonyDrydenCommunity Member
It's not just you Bruce.
I'm having the exact same issues with the window.print(); command
It will print the page in chrome but it cuts off half of the page.
When I change the Adobe PDF settings in print preview, the player never quite formats correctly to the screen. It would be ideal if the image was centred.
Related Content
- 11 months ago
- 11 months ago
- 11 months ago
- 10 months ago
- 11 months ago