AR 17, JSViewer - Setting the PDF Export filename

Posted by: peter on 29 September 2023, 7:56 pm EST

  • Posted 29 September 2023, 7:56 pm EST - Updated 29 September 2023, 8:02 pm EST

    I am using the example provided last week, and have been able to get one of my reports working nicely (and customised the display of the viewer), thanks.

    I have noticed though, that the (PDF) Export Filename has gone and reset back to the default of “ActiveReports Document.pdf” - and its blank in the Export properties list in the browser.

    I had the same issue with the JSViewer control in AR 13, and the fix was to ensure the Name property of the report was set at runtime to the Filename that I wanted. This is no longer working in AR17 for a Code based report.

    How can I set the filename, or barring that, send a value to the JSViewer from the report - as the filename is built from data generated internally in the report itself. The attached shot shows the reportInfo structure returned by the reportLoaded() callback:

    I am also puzzled by the errors here - as there were no errors in my report that I’m aware of, and I fixed all of the Breaking Changes ?

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels