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

PixM

Members
  • Posts

    5
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by PixM

  1. T M Wrote: Hi, We are working with complex jasperreports using xml as a datasource and we are including images. Currently we are using a parameter map for inserting the images, but we wish to use base64 images from the xml datasource. Is there any chance that this functionality will be supported by jasper/ireport in the future? Or is there a way to construct some sort of scriptlet so that the image field can be set to retrieve the xml data and convert it into an image object? Tnx & Regards, pixm Well, Found a solution to this: Insert the following import directive in the report you want to use the images in: - org.apache.commons.codec.binary.Base64 Next declare a variable (to be fancy) new ByteArrayInputStream(new Base64().decodeBase64($F{image}.getBytes("UTF-8"))) This puts the string in a byte array, decodes it from base64 and puts it in an inputstream.Where the $F{image} represents the value of the image tag in a base64 string. Now use this variable in a picture object a inputstream and voila, image appear in your report. Regards, pixm
  2. Hi, We are working with complex jasperreports using xml as a datasource and we are including images. Currently we are using a parameter map for inserting the images, but we wish to use base64 images from the xml datasource. Is there any chance that this functionality will be supported by jasper/ireport in the future? Or is there a way to construct some sort of scriptlet so that the image field can be set to retrieve the xml data and convert it into an image object? Tnx & Regards, pixm
  3. I compiled the source and gave it a try. Didn't seem to be working yet. So I edited two files in net.sf.jasperreports.engine.fill: JRHorizontalFiller and JRVerticalFiller. In the method fillGroupHeader(JRGroup) I removed the check for !isNewPage and compiled again. Now, the pagebreak function in the groups worked properly. It doesn't seem very logical to remove this check, but somehow I think it isn't working properly.. And is it normal that the SVN version of jasper is a bit slow in the JRviewer (related to development or so)? Thanx Pixm
  4. Hi There, I'm new to the board and i have a question. It's about pagebreaks in iReport. I have a report that has 3 pages and i want 2 subreports on each page so 6 subreports total. First page is ok but the subreports that have to be on page 3 are starting on page 2 because the second page is only filled for about half of the A4. The subreports are placed in groups. Can anybody please help me out because i cant seem to find a solution for it. Thanx Alot!
×
×
  • Create New...