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

stradale

Members
  • Posts

    24
  • Joined

  • Last visited

stradale's Achievements

Explorer

Explorer (4/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. I reported this bug here: http://jasperforge.org/projects/ireport/tracker/view.php?id=5600
  2. In v4.0.0 the javaflow.jar is still missing from the maven repository. http://repo1.maven.org/maven2/net/sf/jasperreports/jasperreports/4.0.0/ Is there any reason for this?
  3. Hi all! I'm having some problems with large crosstabs with very litte information. Take the following crosstab as an example. col1 col2 col3 col4 col5 row1 1 row2 2 row3 3 row4 4 row5 5 Depending on the number of rows/columns and the dimension of this crosstab, in some situations this would end up spanning through multiple pages, like this: col1 col2 row1 1 row2 2 row3 pdf page 1 col3 col4 row1 row2 row3 3 pdf page 2 col5 row1 row2 row3 pdf page 3 etc. The problem is this 3rd page where I'm presented with a fully-empty (part of-a) crosstab. Is there a property I can turn on so as to skip the page for these situations? For very large sparse collections this is definitely a problem. Post Edited by stradale at 06/05/2010 07:44
  4. Does anyone have any experience implementing tab leaders? I'm using this code: Font arialFont = new java.awt.Font("Arial", Font.PLAIN, 10); FontRenderContext frc = new FontRenderContext(new AffineTransform(), true, true); Double textWidth = arialFont.getStringBounds(myString) ...and then moving on to filling the remainder of the line with dots/underscores/... I'm having trouble when using styles which in turn use different fonts. How can I use for example this next font? <bean id="myFontFamily" class="net.sf.jasperreports.engine.fonts.SimpleFontFamily"> <property name="name" value="myFont" /> <property name="normal" value="fonts/LiberationSans-Regular.ttf" /> <property name="bold" value="fonts/LiberationSans-Bold.ttf" /> <property name="italic" value="fonts/LiberationSans-Italic.ttf" /> <property name="boldItalic" value="fonts/LiberationSans-BoldItalic.ttf" /> <property name="pdfEncoding" value="Identity-H" /> <property name="pdfEmbedded" value="true" /> </bean>
  5. Problem solved by setting the FORCE_LINEBREAK_POLICY property to true
  6. And it did. This issue can be closed.
  7. I'm exporting to pdf and running Vista SP2. I was using 3.5.3 javaflow but I've tested this same jasper with 3.6.2 (non-javaflow) and the problem remains. I'm uploading another jrxml, this time with the associated jasper (maybe it's a compilation problem). Please let me know if there is anything more I can do to help.
  8. In the jrxml I'm trying to compile, there are several textfields with portuguese characters: ç, õ, etc. If I compile this jrxml using iReport, they are correctly displayed when running the report, however, if I use my custom compiler, they are not. The code is pretty straightforward: JasperCompileManager.compileReportToFile(file.getAbsolutePath(), StringUtils.replace(file.getAbsolutePath(), ".jrxml", ".jasper")); I know I'm missing something, I just cant put my finger on what. Do I need to set the .jasper encoding? If so, how do I do that? JRProperties.setProperty("net.sf.jasperreports.export.character.encoding", "UTF-8") ? ps: the first line of my .jrxml file: <?xml version="1.0" encoding="UTF-8"?>
  9. Hello giulio. First of all thank your for your suggestion. Unfortunately it has two problems. The first is that it does not allow the user to define an exact value. The second is that it still isnt working. I have the same behaviour as not holding the shift key at all.
  10. Hello Ieejava. Check the demos/font on how to use font extensions.
  11. Thank you teodord. We've recently moved to 3.5.3. I followed the fonts sample and I got this working. However, I'm still having problems understanding the simulated styles. Where do I define this? I tried adding <property name="isSimulatedBold" value="true"/> to the fonts.xml but this property is not found. Post Edited by stradale at 08/28/2009 07:27
  12. I tried looking at the provided samples and got this far: JRProperties.setProperty("net.sf.jasperreports.export.pdf.font.arialuni", getClass().getResource("/") + "fonts/ARIALUNI.TTF"); PdfFont font = new PdfFont("arialuni", "Identity-H", true); FontKey keyRoman = new FontKey("arialuni", false, false); FontKey keyBold = new FontKey("arialuni", true, false); fontsMap.put(keyRoman, font); fontsMap.put(keyBold, font); exporter.setParameter(JRExporterParameter.FONT_MAP, fontsMap); and on the jrxml: <textElement isStyledText="true"> <font pdfFontName="arialuni" isBold="true" isPdfEmbedded ="true" pdfEncoding ="Identity-H"/> </textElement> (...) <textElement isStyledText="true"> <font pdfFontName="arialuni" isPdfEmbedded ="true" pdfEncoding ="Identity-H"/> </textElement> The bold is not being simulated. What am I missing here? Post Edited by stradale at 08/27/2009 07:39
  13. I'm having a problem with Arial Unicode. This font does not have bold or italic variantes, only roman ("normal") glyphs. Microsoft applications like Word however are able to apply pseudo-formatting and if I export a created document (in this case .doc) to a pdf, the pseudo-formatting applied is maintained. By inspecting the source code I found this: <</Type/FontDescriptor/FontName/ABCDEE+Arial#20Unicode#20MS/Flags 32/ItalicAngle 0/Ascent 1069/Descent -210/CapHeight 728/AvgWidth 441/MaxWidth 3271/FontWeight 400/XHeight 250/StemV 44/FontBBox[ -1011 -210 2260 728] /FontFile2 25 0 R>> I'm guessing the fontWeight and italicAngle are responsible for the formatting. How can I replicate this?
  14. Seeing as this is a rather old topic and things may have changed: is it possible to define the height of the footer band dynamically? I'm trying to make the page footer height customizable by the end user. The problem is that this band is of fixed height. I've tried different subreports/bands combinations and none of them worked. My only solution so far has been to compile the jasper file at runtime. Is there any way to avoid this rather unelegant solution?
×
×
  • Create New...