Forum Discussion

TeamSupermus's avatar
TeamSupermus
Community Member
2 months ago

Print without dialog box (JavaScript)

My client wants to be able to print a result slide (which is no issue), but they want to print that slide without the dialog box to select the printer and printer settings.  So just by using the default printer and its default settings. 

Is this something you can add with JavaScript and if so, how?
Or is this something you have to do in a webbrowser?
Or is this just not possible?

4 Replies

  • there is only one command in javascript to print

    there are no paramter to change the standard behaviour of this function

    (but it is possible to start the local browser in kiosk/enterprise mode, then the print dialogs do not appear)

    • TeamSupermus's avatar
      TeamSupermus
      Community Member

      The default print button in Storyline just opens a 'report.html' page in my browser with results, so you would have to manually print that page.

      If I make my own button with a print trigger, it works but it will open the dialog box where you have to select a printer but I want to bypass that dialog box. 

      So neither are what my client wants unfortunately ... :)

  • Your best shot is to edit report.html with JS library that would download the report in a suitable format with no additional clicking or the printing dialog box. The attached video demonstrates this. I don't like it; I know it could be refined and worked into more detail, but I don't think it's worth the time. Clients need to understand that sometimes.