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

nathien

Members
  • Posts

    4
  • Joined

  • Last visited

nathien's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Meanwhile I changed my strategy. Instead of compiling each line of the tree strucure itself I add new detail bands to the section and only compile it once at the end. The performance is quite acceptable this way, however I'm still interested in why my first approach didn't work. If any of you got insight on what's different with images and what would have been needed to be done.. It's still appreciated.
  2. Sorry for replying yet again, I still have no clue as to why the Images don't show, while Text and Lines obviously work. In the meantime I managed to convert my JRDesignBand to a JRBaseBand along with the JRDesignImage/Line/StaticText to JRBaseImage/Line/StaticText by subclassing JRBaseObjectFactory and overriding the method getBand(JRBand band). Using this Band instead of the DesignBand was to no avail as well though. I'm running out of ideas to get this to work. Any suggestions are welcome.
  3. Ok, I figured out how to get a JRBaseImage from my DesignImages, but since I can't add a JRBaseImage to a JRDesignBand the problem still persists. (Plus I don't even know if that's the real cause of the problem, since other Objects show up fine, except for Images). To rephrase my initial question: What do I need to do, using my approach, to get the Images to show up like the JRDesignStaticTexts and JRDesignLines?
  4. Hi, I've got a problem with Images not showing up in my report. Here's what I do: I load an empty Template with the JRLoader to get a JasperReport Object. On that Object I'm calling: ... JRDesignBand xBand = new JRDesignBand(); ... (do custom settings on the band, like drawing lines and setting JRDesignImage elements) ... JasperReport xReport = JRLoader... JRBand[] Bands = xReport.getDetailSection().getBands(); Bands[0] = xBand; ..effectively exchanging the detail band from the already compiled report with a self generated one. This works fine, except that the Images don't show up. Other things like JRDesignStaticText and JRDesignLine show up perfectly fine though. I guess that's because the Images need to be converted to JRBaseImages to show up properly, but I didn't find a way to do just that until now. The reason that I'm loading an empty Template is because it cuts down the generation time by incredible amounts. I'm using this approach to draw a JTree structure by hand. If I compile it with a JRDesign instead of loading the template and exchanging the bands, the images show up correctly, but the generation time jumps from ~2 seconds to ~5 minutes which is unacceptable. Any help as to why the Images don't show up using my approach is greatly appreciated. Thanks, Nathien
×
×
  • Create New...