You are not logged in.
Pages: 1
Is there a way to show the TOC for a BIRT report through httpauthexport?
The default BIRT viewer does have this, but I can't seem to find a setting to allow this in the documentation.
Offline
Hello and welcome to the ReportServer forum.
I am afraid the TOC is currently only embedded in the PDF output. Thus, if you export to pdf with httpauthexport your users can use the TOC (given their browser supports it). See following screenshot with chrome:
To have more control and to make it work in all browsers you could use a javascript library such as pdf.js and load the report via the library. pdf js is the viewer powering the pdf preview in Firefox and is also the jsviewer option in ReportServer. It is quite flexible and you can there, for example, show the TOC by default. Following is an example how this might look:
Hope this helps.
Cheers,
Arno
Offline
Thank you!
So I'm fine with using pdf export instead of HTML... is there a way for me to specify for the call to use jsviewer?
To give some background, we're trying to move away from BIRT hosted iServer. We are on a deadline though, since we are currently with the hosted iServer, and that contract will be up in about 2 weeks (yes, I know, would have been better to start developing sooner... tell that to management).
Currently we are calling for the output in an iframe from the iServer, and the iServer delivers the report using a form of the BIRT Viewer, with table of contents on the side. If I can provide something similar from ReportServer with PDF then that would let me not have to modify the production code too much but provide similar functionality.
Offline
ReportServer's export ships the raw pdf, but setting up the iframe should be straight forward. A quick hello world example is given on https://github.com/mozilla/pdf.js/tree/ … helloworld. Basically this is what would go in the iframe (probably the html and javascript combined). Then in the javascript call load the pdf via the ReportServer URL.
Cheers,
Arno
Offline
ReportServer's export ships the raw pdf, but setting up the iframe should be straight forward.
Yeah, good point... Thanks for the pointers!
Offline
Pages: 1