Forum Discussion
Printing in Storyline 360
Hi - I used the below code provided to print a slide in my storyline file. However, it prints in portrait mode and 100%. I can manually update the print settings to landscape and scaled to 75% and it prints perfectly. Is there a way to update the code to automatically print the slide in a landscape format and to scale the size? I have attached my file also.
Code Used:
if (document.location.href.indexOf('html5') < 0) {
GetPlayer().printSlide()
} else {
if(!window.hasPrintStyle){
window.hasPrintStyle = true;
var css = "@media print {div.controls.grid-row.inflexible,div.area-secondary.cs-left.inflexible,header.header-primary.centered-title.extended-height,div.presentation-wrapper:after {display:none !important; visibility:hidden !important;}}";
head = document.head || document.getElementsByTagName('head')[0];
style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet){
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}
head.appendChild(style);
}
window.print();
}
Related Content
- 10 months ago
- 7 months ago