Printing a certificate
Jul 21, 2015
By
Lyn Jenkins
I used the JavaScript print command and it worked perfectly. I printed the certificate once the file had been uploaded to our server and it printed in portrait. Smaller than I wanted, but okay to use. However, once the file was loaded to the LMS, the certificate printed landscape but the file was still portrait so it cut off the right side of the certificate. Do you know what may be causing this? Thanks!
5 Replies
Hi, Lyn -
There's a pretty awesome thread posted by Steve Flowers that may help you get your certificate set up for printing.
Take a look: Example files: Generating a certificate from Storyline
And you may already have this information, but I also wanted to note that although we don't provide support for JavaScript, it may be helpful to take a look at this document on JavaScript Best Practices. Hopefully, some of our experts in the community can chime in with other suggestions! :)
Thanks Cristie. Unfortunately I found that I could not write a code to change the page settings to print landscape, so I used the JavaScript for a pop up message box to tell the learner to switch the printer preference to Landscape to print the certificate. The script is below:
window.alert(‘To print your certificate, change your printer preference to Landscape.’)
The learner then has to read/click through the message to print the certificate.
I see, Lyn -- Thank you for the update, and if you should need further JS support, I'd have to defer to the community to assist. Best of luck with your project! :)
Lyn, is the script you use for the popup message part of the 'Print' button?
Hi Bobby,
This discussion is quite a bit older! I don't know if Lyn is still subscribed or active in e-learning, but since she doesn't have the contact me button on her profile, you may want to start a new discussion sharing what your needs are so that others in the community can help.
This discussion is closed. You can start a new discussion or contact Articulate Support.