Jump to content

Images in table


Recommended Posts

I'm using Jasper Studio 6.1.0 with Jasper Reports java library 5.6.1 and having some issues with creating tables that contain images.

I had a table, enclosed that with a frame so I can tag the table with pdf.table.full. The table cells have a mix of text and images, which I have tagged with the tr and td tags. All is good with the text, and using PAC I can see that the text is correctly defined inside the table. The images, however, end up below the table in the document - they display in the correct position visually, but are not actually inside the table.

PAC shows something like

table
-> text
-> text
image
image

Is it possible to create the table correctly with images inside?

Thanks

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

Store images in a binary field table and insert an image object with Expression value = ${FIELD_NAME}. Class type of filed must be java.io.InputStream

You can customize your query as you like.

Link to comment
Share on other sites

Hi,

Is the above to add images to a table? I don't have an issue with that, and I am able to insert images referencing a file path.

The problem is specifically with the tagged PDFs and table structure. Simplified version attached, tagged the table as a pdf.table, without the tr/th/td.

The image is inside a table cell, but in PAC it shows it outside the table.

 

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