jogrey Posted May 20, 2010 Share Posted May 20, 2010 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 More sharing options...
jogrey Posted June 2, 2010 Author Share Posted June 2, 2010 Anyone of you tried to do such "pdf visualizator" ? Link to comment Share on other sites More sharing options...
lucianc Posted June 3, 2010 Share Posted June 3, 2010 See http://stage.jasperforge.org/plugins/espforum/view.php?group_id=112&forumid=102&topicid=61401, you'll have to customize JS for that.HTH,Lucian Link to comment Share on other sites More sharing options...
jogrey Posted June 7, 2010 Author Share Posted June 7, 2010 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. Link to comment Share on other sites More sharing options...
jogrey Posted June 15, 2010 Author Share Posted June 15, 2010 Is anyone using 3.7 succeed to generate pdf directly ? Link to comment Share on other sites More sharing options...
lucianc Posted June 15, 2010 Share Posted June 15, 2010 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 JSHTH,LucianCode: <action-state id="setPdfOutput"> <set name="flowScope.reportOutput" value="'pdf'"/> <transition to="checkForParams"/> </action-state> Link to comment Share on other sites More sharing options...
jogrey Posted June 23, 2010 Author Share Posted June 23, 2010 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 More sharing options...
lucianc Posted July 1, 2010 Share Posted July 1, 2010 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 More sharing options...
jogrey Posted October 7, 2010 Author Share Posted October 7, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now