Jump to content

AnnMary.Thomas

Members
  • Posts

    97
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by AnnMary.Thomas

  1. Version - Jasper 5.6

    Use case: I have 100 text fields in my report. For that I have created a style say Style1 with Arial font, size 5, and bold = true. But the pdf report generated will not have these textfields in bold. The work around is to manually go and select each of these text fields and set PDF font to Helvetical bold. Then the report is proper. But again there are 2 problems associated with this.

    1) Manually setting 100 text fields is tedious. Again I cannot select all this together as these text fields are in 10 different List components.

    2) I also read in some forums where it says PDFFonts is obsolete and we  need to use fonts-extension by adding jasperreports-fonts-xxx.jar into the classpath. But when I unzipped this jar and checked, it has only dejavuserif font. But I use Arial.

    can any one guide me which is the right approach

  2. Create 2 separate Jasper reports. 1 for Image and the 2nd for legend. Now in your code (for ex: Java class), Create a list  say JPListand  add the 2 reports.

    Create an Jasper Print object say JP1.

    Now loop through the list JPLIST, listItem=JPLIST(0). Get the orientation value for each report. and  set the orientation.

    JP1.setOrientation(listItem.getOrientationValue());'Now add the list Item to JP and export

  3. How to attach a .pdf file to a generated Jasper report

    Example: Say I have 2 jasper files, a.jasper and b.jasper. Now these 2 jasper files are exported as a pdf report

    in one single pdf file. tht is Page 1 of the pdf will have a.jasper and page 2 will have b.jasper. Now this I have acheived this by using

    JRExporter and passing a.jasper and b.jasper as a list. But there is

    one more pdf file itself  say c.pdf ( not a jasper file, as this is provided by our customer and cannot be created as a japer).

    Now I want this c.pdf as the 3rd page of the exported pdf report...

     

  4. Hi hozawa,

    I shall explain with example. Say I have 2 jasper files, a.jasper and b.jasper. Now these 2 jasper files are exported as a pdf report

    in one single pdf file. tht is Page 1 of the pdf will have a.jasper and page 2 will have b.jasper. Now this I have acheived this by using

    JRExporter and passing a.jasper and b.jasper as a list. But there is

    one more pdf file itself  say c.pdf ( not a jasper file, as this is provided by our customer and cannot be created as a japer).

    Now I want this c.pdf as the 3rd page of the exported pdf report...

     

  5. When I am running the application with the Jasper 5.6 jar I am gettting the folllowing error in Weblogic server console

     

    <net.sf.jasperreports.extensions.DefaultExtensionsRegistry> <BEA-000000> <Error instantiating extensions registry for simple.font.families
    net.sf.jasperreports.engine.util.JRFontNotFoundException: Font '
                net/sf/jasperreports/fonts/pictonic/pictonic.ttf
                net/sf/jasperreports/fonts/pictonic/pictonic.svg
                net/sf/jasperreports/fonts/pictonic/pictonic.eot
                net/sf/jasperreports/fonts/pictonic/pictonic.woff
            ' is not available to the JVM. See the Javadoc for more details.
        at net.sf.jasperreports.engine.util.JRFontUtil.checkAwtFont(JRFontUtil.java:358)
        at net.sf.jasperreports.engine.fonts.SimpleFontFamily.createFontFace(SimpleFontFamily.java:320)
        at net.sf.jasperreports.engine.fonts.SimpleFontFamily.setNormal(SimpleFontFamily.java:85)
        at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamily(SimpleFontExtensionHelper.java:233)
        at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamilies(SimpleFontExtensionHelper.java:204)
        at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:173)
        at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:142)
        at net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory.createRegistry(SimpleFontExtensionsRegistryFactory.java:63)
        at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.instantiateRegistry(DefaultExtensionsRegistry.java:238)
        at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:213)
        at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.loadRegistries(DefaultExtensionsRegistry.java:162)
        at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getRegistries(DefaultExtensionsRegistry.java:132)
        at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:104)
        at net.sf.jasperreports.engine.util.JRStyledTextParser.<clinit>(JRStyledTextParser.java:76)
        at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:182)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87)
        at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57)
        at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)
        at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:52)
        at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
     

  6. Another way od doing this would be to use the List Component.

    Drag 2 list components, one for Dark and seconf for Light. Set the datasources of these two lists to ur XML.

    Set the Print order property of the Lists to be Vertical

    Place the Lists Sided by Side

     

    Add one text field to each List. Set the first text field PrintWhen expression to  type =Dark and the second one PrintWhen expressin to type =Light.

    This should solve your problem. Hope tis helps

     

     

     

  7. Hi,

    I am shifting from ireport 4.0 to Jasper soft 5.6.0. In ireport the hammer tool would let me compile the single .jrxml file selected currently. But in Jasper soft after clicking the Previewtab, it is giving me the preview,

    but I dont see the .jasper updated( the last modified time is still the old time and not the new one). But if I give Build automatically, it is recompiling to .jasper file. But it is also compiling the other files also in the directory,

    which is not required.

    Tool : Jaspersoft 5.0

     

     

  8. I have a query which returns 8 fields to generate the report. In this the first 7 fields are of various data types String, Big Decimal etc. But the last field returns Resultset object. (java.sql.Resultset). Within this cursor object I have 10 values which I am displaying in the report. Now the problem is I m calling next() method in one of the fields on this cursor object and displaying the data. Now the issue is as I am retreiving almost 200 records and each record has cursor object, Im running into problems like Opn Cursor Exceed error, as Im not closing these cursors. How can we close these cursor object? Or is ther an alternate approach for this?

     

    ireport 4.0

    jasper 4.6

     

×
×
  • Create New...