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.
- JacekWinckiewicCommunity Member
Hi Bruce,
sadly, that will not work. I forgot to mention what need to be printed. It would be custom review slides. So it will have answer which user choose plus correct answer.
- AmandaSchust077Community Member
Has anyone tried to do the print screen and have it sent via email, without having the learner attach it to an email? I need to have the learner click one button and have the print screen attach to the email to send.
- AmandaSchust077Community Member
Okay, thought so. Guess I will just have to have them attach the print screen to the email and send it. Thanks.
- KristinEllisCommunity Member
Has anyone figured out the javascript needed to print a scrolling panel?
- KristenLlobr354Community Member
Did anyone else have problems with the print function printing everything on the screen? The entire right side of the screen is missing. If I manually change my print settings to change to landscape and scale down the size, then it will show everything, but I can't assume that the users will figure that out on their own. There's also a HUGE left margin that takes up a lot of room. I'm using the Modern player in 360, but seem to have the same problem if i switch the Classic player too. Same problem in both Chrome and IE. Any ideas?
- SueWallisCommunity Member
Hi Kristen
I know you posted this a while ago but I have exactly the same issue and I wondered if you had managed to find a solution?
Thanks
Sue
- GeremyGortemakeCommunity Member
I may have missed something, but is there an easy way to add this print functionality ON a specific slide instead of housing it in a player button or tab?
- OwenHoltSuper Hero
Yes. You can use a trigger from a button or anything else on your slide to "execute JavaScript".
Executing JavaScript is one of your trigger options from anywhere in StoryLine.
- JodiSansoneCommunity Member
Hi Owen,
Thank you for posting this. I know nothing about Javascript, but I know enough to copy and paste your code into the player. Awesome!
- OwenHoltSuper Hero
I'm working on an "Introduction to JavaScript Programming for StoryLine Users" 1 day workshop. I haven't landed on a price yet but I am looking to determine how much interest there might be in the community for this. I would love for users to have some understanding of what they are copying and pasting so they can trouble shoot the code for themselves when things go wrong or maybe even improve the code for the next person in the community.
- LucyWood-cf5987Community Member
I would be interested, Owen.
- SylviaWrightCommunity Member
The trick with the javascript print function is that it does not work in the Articulate Player :(
- OwenHoltSuper Hero
I assume you mean the mobile player?
Also, I've proposed the workshop to the guild multiple times but they haven't approved it yet. They only seem to approve my session proposals and a 1 hour or 90 minute session is not enough time.
- SylviaWrightCommunity Member
Yes
Get Outlook for iOS
- KatherineForneyCommunity Member
HI Owen,
What is the code for printing all the pages in a Storyline workbook, not just one?
Kathie
- OwenHoltSuper Hero
Because of the way the StoryLine "stage" sits in a page, there isn't a way that I know of to print all of the StoryLine pages. If you need to do this, your best bet is to create a PDF file of your course and add it as a resource file that participants can access, save, and print.