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

roby1483

Members
  • Posts

    13
  • Joined

  • Last visited

roby1483's Achievements

Apprentice

Apprentice (3/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Sorry again, with the method suggested by Lucian everything works fine.
  2. Hi to all, I'm sorry to reopening this old thread but I have noticed one strange behavior. I use these methods of JRDesignConditionalStyle, setForecolor() and getLinePen().setLinecolor(), with two different colors but the border color is always the same that the text color. Can anyone help me please?
  3. I have resolv without scriptlet and with this variable declaration: <variable name="NUM_ELEM" class="java.lang.Integer" resetType="Report" calculation="Nothing"> <variableExpression><![CDATA[new Integer($V{NUM_ELEM}.intValue() + 1)]]></variableExpression> <initialValueExpression><![CDATA[new Integer(0)]]></initialValueExpression> </variable>
  4. Hi to all, anyone can help me? I have noticed that if I set the reset type as Report, the first execution of beforeDetailEval() find the variable but the subsequent execution not find it. If I set reset type as Nothing all execution of beforeDetailEval() not find the variable.
  5. Hi to all, I have declared one variable in my subreport like this: <variable name="ELEMENT_COUNT" class="java.lang.Integer" resetType="Report" calculation="Nothing"> <initialValueExpression><![CDATA[new Integer(0)]]></initialValueExpression> </variable> and I have created one scriptlet that increment this variable for each evaluated element: @Override public void beforeDetailEval() throws JRScriptletException { Integer i = (Integer) getVariableValue("ELEMENT_COUNT"); if (i != null) { int num = i.intValue(); num++; setVariableValue("ELEMENT_COUNT", new Integer(num)); } else System.out.println("******* ELEMENT_COUNT not found ********"); } I use this variable for print one line when the value is !=1 (for the first element the line will not be printed). At the first execution all worked well but now (from yesterday afternoon) the scriptlet don't find the variable. Can some one help me please? Thanks at all.
  6. All OK, I resolved with getLinePen().setLineColor() method. Thank you!
  7. Hello Lucian, I have used you suggested code but the border line remain black. In Tomcat's log I have find this alert: AVVERTENZA: The 'pen' attribute is deprecated. Use the <pen> tag instead. I have used iReport 2.0.5 for create the report, what I should change?
  8. Hi to all, I must change the border color of TextField from code using conditional styles. I use setBackcolor() and setForecolor() of JRDesignConditionalStyle object and that works fine, but the deprecated method setBordercolor() don't work. In the documentation I have read to use getLineBox() method instead setBordercolor(), but how I must use this method to set the border color? I use JasperReports 2.0.5. Thanks at all.
  9. Yes, I tried with scriptlet but gave me an error about "parameter not found" or similar. For the page number I resolved with getPages().size() method on JasperPrint object. Thank you very much for replay. Post edited by: roby1483, at: 2008/05/02 13:09
  10. Hello everybody. I need to know the page count of generated report for use this value as base page number for another report. How can I do this? How can I read PAGE_NUMBER variable from Java code and put this value in the parameters HashMap of second report? Thanks at all.
  11. Hello, I have used your method to change the default backcolor and forecolor of one element, but when I generate the report the colors are always the default colors. There are other methods to call after the "setBackcolor" and "setForecolor"? Thank you.
  12. Hi everybody. I have the same question, is possible modify the element's properties at runtime with scriptlet or similar? Thank you. Post edited by: roby1483, at: 2008/03/27 13:52
×
×
  • Create New...