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

SoS

Members
  • Posts

    8
  • Joined

  • Last visited

SoS's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Thank you very much for helping me. Now i m completely sure what i can do or can't with jasperReports.B) Post edited by: SoS, at: 2006/07/28 12:49
  2. We have the chance of modifying both xml design file jrxml and compiled .jasper file before filling task.Going one step further, I want to know if it is possible to make any changes during runtime by USING REPORT SCRIPLET methods such as "beforeDetailEval()" as it is demonstrated in projects' sample AlterDesign application? :blink: Post edited by: SoS, at: 2006/07/28 10:38
  3. i first used it with 1.2.4 (both jasper & ireport) and now i m using with 1.2.5 with no problem at all. HTML & PDF exports were ok. As you wrote, you might try some newer versions i guess. Also check if you enabled StyledText option for that textfield element. :side: Post edited by: SoS, at: 2006/07/28 06:19
  4. teodord wrote: so you'll work with uncompiled report template (JasperDesign is top level object) and you'll find all your setter methods on the classes placed in the "net.sf.jasperreports.engine.design" package which make up this part of the API. Actually i noticed this necessity of recompilation some time ago. I just wanted to be SURE if i must redesign and recompile. Height attiributes will make me recompile the template design. Moreover as i mentioned in my previous post i need that info in order to complete my objectives on JasperReports.
  5. teodord wrote: You can take a look at our /demo/samples/alterdesign sample provided with the project, but note that it only shows what modifications could be made on a compiled report template without need for re-compilation. I tried to modify a textField element in a JSP with the same approach in alterdesign sample. When i try to set an attribute to an element with the proper method call. I m always getting an error pointing at the method trying to modify the object. Something like that. org.apache.jasper.JasperException: Exception in JSP: /jasper/raporla.jsp:35 32: 33: 34: JREllipse jrell=(JREllipse)jr.getTitle().getElementByKey("ellipse-1"); 35: jrell.setBackcolor(new Color((int)(16000000 * Math.random())));; 36: 37: 38: teodord, could you please enlighten me about element modification in report scriptlet and JSP? I really need it. (preparing a prototype web application aiming to show JasperReports capabilities and this topic is my last requirement to make people impressed.)
  6. someguy51 wrote: Hi, Is it possible to conditionally change the font in a textfield? For example, I want to bold a textfield when a flag is true and have the same textfield not bolded when the flag is false. Thanks You don't need to have 2 textfields for this. Just use the condtional expression in the textfields expression. This expression changes the current style if deger1 paramater is equal to isim field. I hope it helps. Code:($F{isim}.equals($P{deger1}) ? "<style isBold='TRUE' forecolor='red' size='20' pdfFontName='Helvetica-Bold'>" +$F{isim}+"</style>" : $F{isim} )
  7. I ve been working on a case similar to this.I m trying to find a way to change the height value of any element or band, in RUNTIME. Can i use any method something like textField-5.setHeight="20" .So far i couldn't make it. by now i m able to design a report which generates the varying elements using conditional expresions with parameters and printWhen expressions. But i need to modify ALL element attiributes during RUNTIME according to data. I wonder if it is possible to have one element that can be modified completely in runtime by using scriptlets methods like beforeColumnInit(); Any idea, comment or solution is appreciated. Thanks.:blush: Post edited by: SoS, at: 2006/07/27 08:51 Post edited by: SoS, at: 2006/07/27 10:29
×
×
  • Create New...