#1 2016-04-04 23:26:42

asiTechsupport
Member
Registered: 2016-03-29

httpauthexport BIRT Table of Contents

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

#2 2016-04-05 07:31:33

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: httpauthexport BIRT Table of Contents

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:

z82FU.jpg

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:

WElsT.jpg

Hope this helps.

Cheers,
Arno

Offline

#3 2016-04-05 15:30:05

asiTechsupport
Member
Registered: 2016-03-29

Re: httpauthexport BIRT Table of Contents

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

#4 2016-04-05 15:40:13

Arno Mittelbach
datenwerke
Registered: 2012-02-14

Re: httpauthexport BIRT Table of Contents

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

#5 2016-04-05 16:21:51

asiTechsupport
Member
Registered: 2016-03-29

Re: httpauthexport BIRT Table of Contents

Arno Mittelbach wrote:

ReportServer's export ships the raw pdf, but setting up the iframe should be straight forward.

Yeah, good point... Thanks for the pointers!

Offline

Board footer

Powered by FluxBB