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

scott.a.miller

Members
  • Posts

    2
  • Joined

  • Last visited

scott.a.miller's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare

Recent Badges

0

Reputation

  1. Accidental double-post Post edited by: scott.a.miller, at: 2008/03/21 15:34
  2. Hey Everyone, I am seeing this same behavior in both RTF and Excel. What I've been able to discern is that the sizes are correct coming out of jasperreports, but by the time the resulting file is opened by Word or Excel, the row heights and widths have all been slightly increased. The images are correctly expanded to fill the space, but the resolution is obviously compromised. My current solution is to create my own JRImageRenderer objects with images scaled by 1.33x1.33 for RTF, and 1.33x1.18. I had to modify JExcelApiExporter to leave the image alone if it's a BufferedImage provided by a JRImageRenderer. Then both Word and Excel correctly expand the image to the pixel-perfect size. This solution is a hack, although it fortunately does appear to work in both Excel and OpenOffice. I would really like to have a more generic solution if possible. Anyone else have any more information on this issue? Thanks, Scott
×
×
  • Create New...