gw Posted October 25, 2017 Share Posted October 25, 2017 Hi,designed a Report with exactly one image in the Summary band.How to render the report as image when called with the URL method ?/jasperserver/flow.html?_flowId=viewReportFlow&j_username=xxx&j_password=xxx&reportUnit=/test&decorate=no&output=???what content is needed for the output parameter ? is this even possible or do i have to set something in the Jaspersoft Studio ? thanks in advance !gerald Link to comment Share on other sites More sharing options...
Solution bojan.brajkovic Posted October 26, 2017 Solution Share Posted October 26, 2017 Hi gw,you can refer to this document for more info on HTTP API and on output types. Unfortunately, as far as I see, pdf might be your best bet so far, as I don't see any image format supported.Kind regards, Link to comment Share on other sites More sharing options...
kkumlien Posted October 27, 2017 Share Posted October 27, 2017 Hi Gerald,Bojan is correct in his answer. You can also add Custom Export Channels to add a file type which is not supported yet. See here for the related documentation for 6.4.0: https://community.jaspersoft.com/documentation/tibco-jasperreports-server-ultimate-guide/v640/adding-custom-export-channels Link to comment Share on other sites More sharing options...
gw Posted November 10, 2017 Author Share Posted November 10, 2017 Hi,thanks for your answer - i think i will look for another solution to generate the image.Developing a class to generate an image in an report generator software is a bit strange and too much work. Link to comment Share on other sites More sharing options...
kkumlien Posted November 11, 2017 Share Posted November 11, 2017 Hi Gerald, there is normally no need to generate images as HTML output is perfect for embedding into web applications, etc.Can you clarify your use case / requirements? We might be able to assist you better. Link to comment Share on other sites More sharing options...
gw Posted November 14, 2017 Author Share Posted November 14, 2017 I've already embedded the html into our (old, self written) reporting framework. in this case, there is no need to show the userthe complete html for the embedded report as the parameters are entered in another application. the things i do not like about embedding are:- user/password as parameters in the url (i guess there is some more secure way but i didnt find it yet)- unable to select the datasource for the report via url next point is we have some (more or less) complicated xlsx and pdfs generated in plsql with pldf, sometimes its needed to embedd some graphs into the xlsx/pdf - as image, not as complete html. i think the jr possibilities are great and we use it already for pdf printing in oracle apex - but the possibility to generate plain jpg/png/etc images are really missing !thanks for your reply :) Link to comment Share on other sites More sharing options...
kkumlien Posted November 15, 2017 Share Posted November 15, 2017 Hi Gerald, thanks for your feedback. About those two points, I'd recommend posting them as new questions and we'd be happy to respond.Charts in Excel (see here) and PDF formats are already included as images, if that doesn't work please post a new question or open a case with Support.Unfortunately from your description I'm still unable to gather your use cases for exporting to an image format (although of course I understand that in general there are cases in which it would very useful). Btw if you Google it you'll find some implementations already done (e.g. here and here), or if you use the library you could use printToImage. 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