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

rinsha.mohammed

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

Security Advisories

Downloads

Everything posted by rinsha.mohammed

  1. Finallly I myself found the solution. When inputstream is going in another inputstream the inner inputstream is getting empty. SO I changed the datasource to JRBeanCollectionDataSource . Now it is working fine !
  2. I have to get rid of blank space when value of my text field is empty. FOr that I gave isRemoveLineWhenBlank="true" , positionType="Float" and isBlankWhenNull="true". <staticText> <reportElement positionType="Float" x="0" y="40" width="70" height="20" uuid="8bccf322-2ac4-44c7-a552-ef772eb7aaf2"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> </reportElement> <textElement textAlignment="Justified" verticalAlignment="Middle"> <font fontName="Arial" size="11" isBold="true"/> </textElement> <text><![CDATA[iTU Review:]]></text> </staticText> <textField textAdjust="StretchHeight" isBlankWhenNull="true"> <reportElement positionType="Float" x="0" y="60" width="514" height="20" isRemoveLineWhenBlank="true" uuid="8f09e167-ed4e-444c-9720-0232329c2242"> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> <printWhenExpression><![CDATA[$F{ituReviewInfo} !=null]]></printWhenExpression> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle" markup="none"> <font fontName="Arial" isBold="false"/> </textElement> <textFieldExpression><![CDATA[$F{ituReviewInfo}]]></textFieldExpression> </textField>
  3. Hi All, I have to display a dropdown list in Jasper Report from Java where I have to show all the options of the dropdown list along with the selected one as Bold. How can I do it in Jasper/Java? Let me explain it with an example : States: State1 State2 State3 State4 State5 State6 Here under the title states I have to get all the dropdown elements with the selected value (State4) in bold. Could anyone help with this !
  4. Hi All, I need to display Images which comes from database and it's a byte array. I am using Jasper 6.16.0 . I initially tried to get the Image as InputStream in Japser. InputStream logo = new ByteArrayInputStream(imagebytes) - here logo is my input variable for image SInce I am using JsonQLDataSource in My Java for JasperFillManager.fillReport as below : InputStream inputStream = new ByteArrayInputStream(mapper.writeValueAsBytes(myJsonDto)); JsonQLDataSource jsonData = new JsonQLDataSource(inputStream); final JasperPrint print = JasperFillManager.fillReport(report, parameters, jsonData);[/code] In Japser I gave <field name="logo" class="java.io.InputStream"/>[/code] <band height="125" splitType="Stretch"> <image onErrorType="Blank"> <reportElement x="74" y="33" width="50" height="50" uuid="e93df5ef-176d-436b-a58f-ddcb0d7f6f3c"/> <imageExpression><![CDATA[$F{logo}]]></imageExpression> </image> </band>[/code]But I am not getting my Image Displayed. When I debugged my code I could see that the image variable 'logo' is going empty in Datasource. So I need a loution for this issue, when inputstream is going in another inputstream! Also I tried the solution : https://community.jaspersoft.com/questions/541551/loading-byte-array-database-and-displaying-it-image , there also I didn't get Image displayed. Could anyone please help on this !!
  5. Is this issue resolved? If yes , could you please share the code for displayin multiple images ?
×
×
  • Create New...