Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
0

Printing from captivate

Community Beginner ,
Feb 07, 2017 Feb 07, 2017

Hi  Guys

I have added a print button and added the java script window.print(); unfortunately the result I get when I preview is this:

Not a java script expert so I don't know what I need to do here. Has anyone ever got this and if so how do you print?

Seen successful printing in demonstrations on YouTube but just doesn't work for me. Any ideas?

Thanks a lot.

294
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 07, 2017 Feb 07, 2017

You're using one of the preview options that publishes only to SWF and that is disabling the JavaScript.

Use one of the other options such as Preview in Browser and see whether that works better for you.  Alternatively, publish your project out to your local hard drive and then run the HTM file in your web browser. As long as Flash Global Security is set up on your system to trust that folder location you should find that the JavaScript works.

Another alternative is to upload your published conten

...
Translate
Community Expert ,
Feb 07, 2017 Feb 07, 2017

Javascript to be executed needs to run in a web browser. That means that the simple Preview methods, which exist for a normal project and are Flash-based will not show the result of JS. You need to use either F11 = Preview  HTML in Browser for HTML output or F12 = Preview in Browser for SWF output.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 07, 2017 Feb 07, 2017

You're using one of the preview options that publishes only to SWF and that is disabling the JavaScript.

Use one of the other options such as Preview in Browser and see whether that works better for you.  Alternatively, publish your project out to your local hard drive and then run the HTM file in your web browser. As long as Flash Global Security is set up on your system to trust that folder location you should find that the JavaScript works.

Another alternative is to upload your published content to a web server or LMS (e.g. SCORM Cloud) and test it from there.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 07, 2017 Feb 07, 2017
LATEST

Thanks for all your replies.

Uploading to SCORM resolved the problem.

Thanks again.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources