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

amanmahajan

Members
  • Posts

    1
  • 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 amanmahajan

  1. I am not using JRXML file rather just creating my design using java APIs only. But i am not able to get the picture in Excel sheet. Please help me on the code urgently. JRDesignBand bandDetail = new JRDesignBand(); bandDetail.setHeight(fontMetric.getHeight() + 1); bandDetail.setSplitAllowed(false); JRDesignImage image = new JRDesignImage(jasperDesign); image.setScaleImage(JRImage.SCALE_IMAGE_CLIP); JRDesignExpression jrExpress = new JRDesignExpression(); JRDesignExpressionChunk expressChunk = new JRDesignExpressionChunk(); String str = "http://www.google.de/intl/de_de/images/logo.gif"; expressChunk.setText("""+str+"""); jrExpress.addChunk(expressChunk); jrExpress.setValueClass(String.class); image.setExpression(jrExpress); bandDetail.addElement(image); Regards ~Aman
×
×
  • Create New...