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.
- 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!
- FrankWeber-af01Community Member
Hello,
I just tried this with SL3, and it is strange:
It works when I open the published project locally, see screenshot here:
https://www.screencast.com/t/nA7SzYflpebut when I publish the project to the web the PDF is still rendered, but it is empty - it just shows the header and footer?
see screenshot here:
https://www.screencast.com/t/jAyDayunMwNAny suggestions?
- FrankWeber-af01Community Member
Hi Owen,
I just found out that the problem does not occur when I create a completely new project from scratch. But if I add the code to an older Project (i.e. one that was originally created with SL2 oder maybe even SL1) the problem I described above occurs.Can this be the cause of the problem?
Is there anything I can do about this and make your trick work for existing projects?Thanks for your feedback,
Frank
- OwenHoltSuper Hero
The print functionality should work regardless of which version of SL you are using or how you are publishing. However, hacking the SL player to make it a print button and moving it around will only work in SL3* and only when published to HTML5.
*You can hack the SL2 player if you publish to HTML 5 however, the player elements are labeled differently and you have to modify the code for SL2 from what I have provided in my file.- FrankWeber-af01Community Member
Hi Owen,
Thanks for the clarification. I think will try to customize the print-functionality.
- onEnterFrameCommunity Member
Keep in mind that often when you invoke the JS method print() on a page with Flash those objects will not print. They display as empty placeholder on the printout.
- FrankWeber-af01Community Member
Hi James,
Thank you!
By changing the output preferences I could solve the Problem.
Regards,Frank
- MikeAdeniranCommunity Member
1. Is it possible to print a result slide without the users seeing the result?
2. Is there a way once can export the result slide to another platform, like mailing it as i have been looking for how to get the result slide without my students seeing their result. - onEnterFrameCommunity Member
Not really... but you could create a new HTML page with the results etc. Then pass the score to it via javascript and print that.
- MikeAdeniranCommunity Member
Please Owen, help me out here.
- NatachaDube-c9eCommunity Member
Great information
is there any way to print the slide only, not the player
thanks
- OwenHoltSuper Hero
Not that I have been able to find. There is some JavaScript I am exploring to print frame that seems promising for html5 files. Will update you when I have a chance to test it.
- NatachaDube-c9eCommunity Member
Thanks, I need to deliver a project on Tuesday and looking at away for learners to print or email their certificate. I am using storyline 360. The java script used worked but it prints a screen shoot of the certificate , I only need the certificate or the slide.
ThanksNatacha Dube
Nursing supervisor
780.436.8484 x 40324