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

neian

Members
  • Posts

    9
  • Joined

  • Last visited

neian'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. Hello, To be able to display the image in a pdf, I found the solution in the PJA Toolkit forum. Thanks.
  2. Hello, Thank you for the suggestion but I cannot set the java.awt.headless = true since I am using jdk 1.3. However I was able to find a solution for my problem. I just need to put my Image in a BufferedImage and use the Graphics2D to draw the Image. In order to use jasper reports in the Unix environment, we used PJA toolkit and just set the server properties as per PJA documentation. Below is the code I used to generate the Image. public static Image getLogo() { URL imageURL = Thread.currentThread().getContextClassLoader().getResource("images/WMS_K_2.jpg"); ImageIcon icon = new ImageIcon(imageURL); BufferedImage logo = new BufferedImage(icon.getIconWidth(),icon.getIconHeight(),BufferedImage.TYPE_INT_RGB); Graphics2D graphics = logo.createGraphics(); graphics.drawImage(icon.getImage(),0,0,icon.getImageObserver()); return logo; }
  3. Cannot get to the link. When I logged in, it says permission denied. Is there some way to view this discussion? Thanks By: Teodor Danciu - teodord RE: Newline/carriage return char prob - PDF 2003-05-17 05:41 Hi, For those interested, this has been discussed here: https://sourceforge.net/forum/forum.php?thread_id=866736&forum_id=113529 Thank you, Teodor
  4. What if it is a string passed as parameter to the jrxml? For example in the application String s = "This is an example n This is the next line". In the iReport - $P{LineSample}. How can I show this in the pdf as two rows? Right now, the "n" is being displayed in the pdf as part of the string.
  5. Hello, I have a problem in the image embedded in the pdf file that jasper report generated. The image was not transparent and has a dark grey color. This occurred when I used PJA toolkit to be able to run the JasperFillManager.fillReport(xx) in our unix server. I am using the code below to get the image. Image logo = new ImageIcon(imageURL).getImage(); In the jrxml, the image is declared as an Image object. <image scaleImage="RetainShape" isLazy="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement mode="Transparent" x="191" y="30" width="167" height="62" key="image-1"/> <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.awt.Image"><![CDATA[$P{Logo}]]></imageExpression> </image> Maybe somebody has also encountered this and can share their insights on what could be the cause of the image problem and how to solve it? Thanks.
  6. where did you set the system properties?can you share the code to set them? I'm doing the same thing and I'm getting an error that the packages are not defined. thanks!
  7. hello, I am also getting the same error as you did with WSAD. where did you set the jasper system variable classpath to recognize the jasper report jar files? is it also in WSAD?
  8. Hello, I am trying to call the jasperreport in a servlet. but when I tried to call this jasperReport = JasperCompileManager.compileReport("C:/Reports/Rx_Chart.jrxml"); during runtime, I'm getting this error [1/22/07 17:00:34:750 GMT-06:00] 11518888 SystemErr R C:Program FilesIBMWebSphere StudioApplication Developerv5.1Rx_Chart_1169506834594_180252.java:4: package net.sf.jasperreports.engine does not exist [1/22/07 17:00:34:750 GMT-06:00] 11518888 SystemErr R import net.sf.jasperreports.engine.*; [1/22/07 17:00:34:750 GMT-06:00] 11518888 SystemErr R ^ [1/22/07 17:00:34:750 GMT-06:00] 11518888 SystemErr R C:Program FilesIBMWebSphere StudioApplication Developerv5.1Rx_Chart_1169506834594_180252.java:5: package net.sf.jasperreports.engine.fill does not exist [1/22/07 17:00:34:750 GMT-06:00] 11518888 SystemErr R import net.sf.jasperreports.engine.fill.*; I already checked the jar files in WEB-INF/lib and I think they are complete. I dont have any problems if I run this as a standalone application or using the main method. Please help.
  9. Hi, I'm just new to using iReport and I'm trying to display the contents of a vector per line. How should I go about this? I tried using a for loop formula but I got an exception. Please help. Thank you.
×
×
  • Create New...