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


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

cheeka's Achievements


Rookie (2/14)

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

Recent Badges



  1. Image background for the image is not set for HTML reports. However, for the PDF reports image background is set. The image expression set as string. Here is the code snippet for the image tag. Code: <image evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="1" y="1" width="11" height="20" forecolor="#00CCCC" backcolor="#006699" key="image-1" positionType="Float"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <graphicElement stretchType="NoStretch" pen="None"/> <imageExpression class="java.lang.String"><![CDATA[($F{state}.intValue()==2 || $F{state}.intValue()==0)?"images/nrd/show.gif":"images/nrd/hide.gif"]]></imageExpression> <anchorNameExpression><![CDATA["reportrow"+$F{id}]]></anchorNameExpression> </image> My question is how to set background color for the images in HTML format.
  2. Hi, We are trying to generate tree report as shown below. We would like to have HTML and PDF versions of the tree report. In the HTML version we intend to provide expand/ collapse functionality and in the PDF version, we would be generating the report in all expanded format. Our report looks like this Region-Wise Sales Total + Manager1 + Manager2 + Manager3 On Clicking '+ Manager1' in the HTML version, it would be - Manager1 ...+ Sales Lead1.1 ...+ Sales Lead1.2 ...+ Sales Lead1.3 + Manager2 + Manager3 On clicking '+ Sales Lead1.1', it would be - Manager1 ...- Sales Lead1.1 ......- Agent1.1.1 ......- Agent1.1.2 ...+ Sales Lead1.2 ...+ Sales Lead1.3 + Manager2 + Manager3 Agent is the leaf of the tree. In each row of the report, we would be displaying additional columns like region-wise total sales like, - Manager1 127 256 350 It means 127, 256 and 350 are sales made by all men under 'Manager 1' in east, central and west regions. I am not sure, if we could use jasper to generate this kind of report. If tree kind of report is not possible, is it possible to have every child details has separate report and in the html have some call back function which would generate this child details on the fly. The generated child details can be plugged into the main tree appropriately. I would appreciate any thoughts on this.
  3. I have requirement, where I need to have my PDF version of the report in one size and HTML version of the same report in another size. PDF and HTML page heights are not being the same. Any ideas? tia
  4. I would like to show one page at time of my exported HTML report. Using the page naviation controls in my page, the user would be able to view other pages of the report. I think it is possible to get one page of the report at a time by giving JRExporterParameter.PAGE_INDEX My question is how do we find the max page? tia
  • Create New...