Can't find what you're looking for?

Contact us or post in our forums and we'll help you find an answer.

How to export a report with a custom name in HTML5 viewer with ActiveReports


This KB article shows how to export the report with custom name in HTML5 viewer. When you export through the Html5 viewer, it is not given the option to change the name of the exported file. It always exported with the name of “ActiveReports”.

Steps to Complete:

1. You can use the following code to change the name of the exported file.

viewer.export('PDF',  function (uri) {
                var newWin = null;
                try {
                    newWin =;
                } catch (e) { }
                if (!newWin) {
                    window.location = uri;
                true, {
                FileName: 'AnyValidName.pdf'

Get the Latest Version of ActiveReports
Download the Free Trial Now