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

dac4457

Members
  • Posts

    7
  • 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 dac4457

  1. Anyone have any input on this. I think maybe I just don't have the files in the right place or packaged correctly. Thanks for any input.
  2. Gabriel There is probably a better way to do it relative to where your class object is etc. but here is the way that I do it and it works for me. I place the my jasper files in the same directory as the class that is going to use them. Then I get the path of the class itself that is going to call them and append the jasper report file name onto it in my code. See the example below. Code:File classFile = new File(new URI(CIReportsCommand.class.getResource("CIReportsCommand.class").toString()));String filePath = classFile.getParent();File reportFile = new File(filePath + "/ciinsurancelog.jasper");
  3. So sorry to bring this up. I have read the FAQ, searched the forum, read blogs and review the samples on this topic and have tried various things over the last few days to get a simple sample to work. I don't know what I am missing. I have setup a simple report with 2 fields that have 2 fonts that look very different so I could tell if it was working. Comic Sans and Curlz_Mt. One of them I installed into the list of fonts (Curlz_MT) and the other I did not (Comic Sans) just to make sure I could tell that one was working in the pdf and the other was not. I created the font extension jar and I believe I made sure it was in the classpath. I even added the folder to the classpath as well as trying it in various locations. Each time I would close the report and iReport to make sure the paths and every thing was loaded into the application. Nothing seemed to work. When I preview the report the pdf shows the same default font for the text which is neither Comic Sans or Curlz_MT. I am using iReport 3.7.6 and Jasper 3.7.6 I have included my jrxml for the simple report and made sure the depricated pdf attributes are not in the file I have included the font extension file, the pdf and screen shots of my font and classpath in iReport. I am planning an upgrade from Jasper 2.0.5 to 3.7.6 in our web application and I want to make sure and implement the font extensions correctly for our pdf generated reports. If I get a new simple report to work then I can troubleshoot and convert our older reports. Thanks for any help you can give. Cheri Code:<?xml version="1.0" encoding="UTF-8"?><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="fonttestreport" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <background> <band splitType="Stretch"/> </background> <columnHeader> <band height="61" splitType="Stretch"> <staticText> <reportElement x="134" y="11" width="272" height="36"/> <textElement> <font fontName="Comic Sans MS" size="24"/> </textElement> <text><![CDATA[This is Comic Sans]]></text> </staticText> </band> </columnHeader> <detail> <band height="125" splitType="Stretch"> <staticText> <reportElement x="16" y="14" width="164" height="36"/> <textElement> <font fontName="Curlz MT" size="16"/> </textElement> <text><![CDATA[This is Curlz MT]]></text> </staticText> <staticText> <reportElement x="246" y="14" width="100" height="36"/> <textElement> <font fontName="Curlz MT" size="15"/> </textElement> <text><![CDATA[Hello]]></text> </staticText> </band> </detail></jasperReport>
  4. One other question to ask about the Markup HTML field. Do I need to provide the <HTML>, <HEAD>, <BODY> tags? I believe I tried this in the past and it didn't make a difference. One other note when I use the Markup HTML property I don't set the isStyledText to true. I leave this at false. Thanks Cheri
  5. I have a jasper report that has a Textfield flagged as Markup HTML. I understand from previous topics that it supports formatting tags but not the layout type of tags. I really need a bullited list of sorts but would be satisfied with just having a <br> tag work. I have tried both <br> and <br/> in both upper and lower case and when sending it to a PDF it will not give me a line break. I have tried replacing it with a new line character. The only thing that gives me a new line is the <li> tag. It doesn't give me the bullet mark but does give me a new line. I have tried removing all of the bullited list tags and using the various <br> tags but I do not get a new line. I also have converted the <strong> tags to <b> making sure I have the closing tag and when sending it to a pdf I do not see any bold. Do I have to use style tags? The HTML is stored in the database from a front end application using FCK Editor. It generates the HTML and I could use a StringBuffer to read through the HTML and replace it with simpler HTML or something that the Jasper filler/exporter would be happier with. Any insight on rules and how the HTML should be for the Markup HTML setting to work would be greatly appreciated. Thanks Cheri
  6. First of all I must say thank you so much for the new Markup attribute in 2.0.5. It is a missing piece we have been looking for. I have been experimenting with it. I have noticed that on reports that have several text fields in a columnar/detail report that the vertical alignment is off. Any of the fields that I have flagged as Markup HTML they do not line up vertically with the rest of the detail fields in the row. I checked my alignment attribute and it says top. If I uncheck the Markup attribute it then vertically aligns itself with the rest of the fields in the row. Is this the way it should work? Is this a bug? Is there anything I can do? Thanks Cheri
  7. I am currently using iReport 1.3.3 but would like to upgrade. I am taking the Jasper reports created and running them in a web application. The web application development tool I am using is restricting me to run JDK 1.4 presently. I am wondering if I can upgrade to any of the iReport 2.x.x versions of iReport at this time. I have purchased the Definitive Guide to iReport 2.0 which states I must have JDK 1.5 if I am going to use Report Scriplets. Can I upgrade to a 2.x.x version and just not use Report Scriplets? Thanks Cheri
×
×
  • Create New...