This recipe shows you that the HTML items and JavaScripts used on the report page are not executed when report runs in PDF or Excel.
Open the report that we created in Chapter 3, "Generating bar chart with JavaScript" recipe.
When users run the report in any format other than HTML, the prompt page generated is still a web page. Hence, any scripts put on the prompt page (for example, default selections) work fine. However, when the actual report is generated, it will execute the scripts only in HTML format.
Hence, the script actions fail in case of PDF, Excel, or any other non-HTML output.