Jump to content
We've recently updated our Privacy Statement, available here ×

Report, generating directly to pdf


jogrey

Recommended Posts

 Hi,

i have a problem, i must use some specifics jrxml, with a lot of rectangles inside, and as we know the JRHtmlExporter got troubles with them so i tried to :

Avoid the html render in copying DefaultJasperViewer.jsp into  a new one, commenting //exporter.exportReport(); to mask the ugly rendered page, this point is ok.

But i don't know how to directly display the pdf, or flash output into an iframe for instance, or at least into a new page.

How to directly call the pdf generator instead of the html one, is there an option for that ?

 

Thank you :)

 

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...

In 3.7.0, you would have to do this:

- change the start-state atrtibute of the root (flow) element to setPdfOutput

- add the lines below after the <input> elements

- restart JS

HTH,

Lucian

Code:
	<action-state id="setPdfOutput">		<set name="flowScope.reportOutput" value="'pdf'"/>		<transition to="checkForParams"/>	</action-state>
Link to comment
Share on other sites

  • 2 weeks later...

 The code seems to be ok, but, it opens the pdf on the same page, and not in the rendered page as html.

Could we, at least if it is not possible, open the pdf in a new page ?

Thank you anyway !

 



Post Edited by jogrey at 06/23/2010 14:00
Link to comment
Share on other sites

  • 2 weeks later...

I'm not sure how PDF embedded in HTML would work.

As for opening in a new page, that's most likely possible but I'm not familiar with that part of the code so I don't know what needs to be changed.  Maybe someone else could help.

Regards,

Lucian

Link to comment
Share on other sites

  • 3 months later...

 Doing this modification, we directly render the page :

 

<action-state id="setPdfOutput">

<set name="flowScope.reportOutput" value="'pdf'"/>

<transition to="checkForParams"/>

</action-state>

 

But we cannot choose anymore the export we want to do !

 

As it opens the exported result in the same windows than the jasperserver page, overriding this last one (the user has to click on the back button of the browser to go back to JS).

 

Is anyone of you succeed to change the default render mode of a report without loosing the "export tool bar" ?

I really want to avoid the ugly html rendered pages.

 

Thank you :)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...