Javascript to print out content of Scrolling Panel in Storyline?

Jun 03, 2013

Hi, does anybody know the javascript commands (activated by a trigger) needed to print out the content a scrolling panel (e.g. Scroll 1 ) in the attached screenshot (or even if this is feasible to do in the first place using Articulate Storyline)?

Thanks in advance for any help on this

26 Replies
Leah Mathis

I just used a modified version of Sam's JavaScript to print a scrolling text screen and it worked like a charm. Here is what I did in case it helps anyone else. 

Insert a button on the page you want to print and add a trigger to the button “Execute JavaScript”.

Copy and paste the JavaScript below into the trigger.

Adjust the text in the parenthesis on line 2 to patch the text variable you wish to print. (No percent signs are needed around the variable)

Line 6 -7 “Here are Your Notes” will name the printing document.

Copy and paste the following: 

var player = GetPlayer();
var yourNotes = player.GetVar("TextEntry8");

var mywindow = window.open('', 'Printing', 'height=400,width=600');
mywindow.document.write('<html><head><title>Printing</title>');
mywindow.document.write('</head><body >');
mywindow.document.write('<h2>Here are Your Notes</h2>');
mywindow.document.write(yourNotes);
mywindow.document.write('</body></html>');

mywindow.document.close(); // necessary for IE >= 10
mywindow.focus(); // necessary for IE >= 10

mywindow.print();
mywindow.close();