I am trying to add a print button to the results slide of my course. I have created a print button and added a trigger to execute the javascript when the user clicks.
The javascript code I am using is:
window.print();
When I publish/upload the course into my LMS (Cornerstone OnDemand) and click the print button, it functions enough to launch the print dialogue box, but the actual print preview is blank.
Any suggestions/advice would be greatly apprciated!
I have a similar problem. We would need a print function on a slide within a quiz where the student types in an answer into a text entry box which the teacher should be able to access somehow. Emailing this didn't work because of technicalities on our side and so we were thinking of printing this out so it can be handed to the teacher. Any other solutions how this teacher - student interaction could happen would be appreciated. Regarding the print button - I would also be very interested in the flash source file.
Here is the Printbutton.fla file. I didn't create it my self, i was in a printing problem just like you and i searched for any solution until found this easy solution.
Thank you, Amr. I was able to modify the .fla file and change the image to the one I wanted (yet keeping all script in tact), then published a new .swf file. I placed this .swf into my Storyline file, republished and uploaded it into my LMS. Upon testing, it worked perfectly. Thank you again!!!
I am uploading the modified .fla and .swf files for anyone who wants to grab them.
First of all I want to thank you for the buttons. I do have a small problem: I inserted your button on the results page, but when I click it, the icon of it, shows on my print page. I attached a PDF file to show you what I am talking about.
Unfortunately, this is an issue that I have as well. I have not found a way to prevent the button from printing. The way I worked around this, is I made the swf button very small and placed it in the lower corner of the screen. It still shows up, but it is much less intrusive on the print out by doing this. Certainly not perfect, but for my purposes, at least acceptable.
So Phil, I take it you put the show layer trigger on the print button and then put the JS trigger on the layer set to run when the timeline starts. is that correct?
Thanks everybody, this is just what I needed! I had some "issues" previously with javascript print and had not thought to go the Flash route. Brilliant!
19 Replies
Here is a .story file with an example of the print button / javascript I am trying to use.
This is a screen capture of what I get when I publish/upload the course to my LMS and click the print button.
Dear Bobbi,
Can you try this Button, insert it as a flash in your result slide.
Best Regards
Amr
Amr,
That worked perfectly! Any possible way you can post the (.fla) flash source file that you used to create the button?
Hi there,
I have a similar problem. We would need a print function on a slide within a quiz where the student types in an answer into a text entry box which the teacher should be able to access somehow. Emailing this didn't work because of technicalities on our side and so we were thinking of printing this out so it can be handed to the teacher. Any other solutions how this teacher - student interaction could happen would be appreciated. Regarding the print button - I would also be very interested in the flash source file.
Dear Bobbi and Chris,
Here is the Printbutton.fla file. I didn't create it my self, i was in a printing problem just like you and i searched for any solution until found this easy solution.
Thanks & Best Regars
Amr
Thank you, Amr. I was able to modify the .fla file and change the image to the one I wanted (yet keeping all script in tact), then published a new .swf file. I placed this .swf into my Storyline file, republished and uploaded it into my LMS. Upon testing, it worked perfectly. Thank you again!!!
I am uploading the modified .fla and .swf files for anyone who wants to grab them.
Thanks Bobbi, you made it more attractive, so here is another gift. Try it and give me your feedback.
Regards.
Thank you so much
Dear Bobbi and Amr
First of all I want to thank you for the buttons. I do have a small problem: I inserted your button on the results page, but when I click it, the icon of it, shows on my print page. I attached a PDF file to show you what I am talking about.
Any ideas how to remove it?
Regards,
The Java script worked for me, but it printed my slide (certificate) half page and portrait.
I too inserted the swf, but like Bogdan, the icon appears in the printed results.
Unfortunately, this is an issue that I have as well. I have not found a way to prevent the button from printing. The way I worked around this, is I made the swf button very small and placed it in the lower corner of the screen. It still shows up, but it is much less intrusive on the print out by doing this. Certainly not perfect, but for my purposes, at least acceptable.
show a layer that hides the print button
So Phil, I take it you put the show layer trigger on the print button and then put the JS trigger on the layer set to run when the timeline starts. is that correct?
That is what I would do and set the layer to close on timeline end so then the print button comes back
You are so smart.
Thanks everybody, this is just what I needed! I had some "issues" previously with javascript print and had not thought to go the Flash route. Brilliant!
I am a new user... Can you please tell me more detail?
Thank you in advance!!!
This discussion is closed. You can start a new discussion or contact Articulate Support.