Jump to content

Recommended Posts

Posted

 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 :)

 

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

Top Posters In This Topic

Posted

 Thank you for the link, but with the 3.7CE it seems to be not comptatible, I can't get it working, certainly the xml changed since the version used in the link you gave me.

 

 

  • 2 weeks later...
Posted

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>
  • 2 weeks later...
Posted

 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
  • 2 weeks later...
Posted

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

  • 3 months later...
Posted

 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 :)

 

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...