Jump to content

_freeman_

Members
  • Posts

    14
  • 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 _freeman_

  1. How can I fill data from json dataset that are not part of the array?

    json.jpg.54f038838c6973e1a0ad048edd9e2aa6.jpg

    Only array values get filled: 

    pdfreport.jpg.49ec847f1098081eccfee93c859308f2.jpg

    I searching for solution without table, because I have a long text that needs to be shown, and tables not working correctly with cells on one or more pages.

    I've attached test jrxml and json file.

    Thank you very much.

     

  2. Hello,

    if someone else also bump on this kind of a problem I've founded workaround.

    If using TEXT <sub>subscript</sub> TEXT, with Times New Roman, you will get this report:

    jasperproblem_2.png.2b1161b1cedba90c39413989355ffa3e.png

    Workaround for this is to use <sup> tag with <sub>, like this TEXT <sub>subscript</sub><sup> </sup>TEXT, and voila: 

    jasperproblem_1.png.2673b61bbe6ea5fa28d8cbe01923d697.png

     

    Hope that someone will find this halpful .. 

    This is a jar with font I've used .. please change extension to TimesNewRoman.jar befor use it: 

    TimesNewRoman_jar.txt

  3. Hello,

    I've noticed that in new version 6.3.0 there is still strange behaviour that I've reported few years ago(http://community.jaspersoft.com/questions/542340/subscript-tag-problem).

    Ok, I've continued digging the source code and I've founded that the problem occure when jrprint is drawing to the Image, but only with specific fonts. 

    For example, if you use DejaVu Serif, DejaVu Sans, Times New Roman .. but everything is ok when I use font FreeSans. 

    Maybe somone can confirm that this is a bug .. class is JRPrinterAWT.java, method: printPageToImage.

    Jasperreport  version is 6.3.0, jrxml for testing this:

    <?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/jasperreportshttp://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="rptZahtev" pageWidth="595" pageHeight="842" columnWidth="538" leftMargin="20" rightMargin="37" topMargin="21" bottomMargin="10" uuid="bd88b67f-8665-4395-b673-cfb74d86ad0a"><property name="ireport.zoom" value="1.2100000000000124"/><property name="ireport.x" value="0"/><property name="ireport.y" value="505"/><background><band splitType="Stretch"/></background><title><band height="144" splitType="Stretch"><staticText><reportElement uuid="57c28347-e699-4c46-9dee-f54048a6f079" x="221" y="0" width="221" height="72"/><box topPadding="2" leftPadding="2"><pen lineWidth="1.5"/><topPen lineWidth="1.5"/><leftPen lineWidth="1.0"/><bottomPen lineWidth="1.5"/><rightPen lineWidth="1.0"/></box><textElement textAlignment="Center" verticalAlignment="Middle" markup="styled"><font fontName="DejaVu Serif" size="12" isUnderline="true" /></textElement><text><![CDATA[TEXT <sub>subscript</sub> TEXT]]></text></staticText><staticText><reportElement uuid="57c28347-e699-4c46-9dee-f54048a6f079" x="221" y="72" width="221" height="72"/><box topPadding="2" leftPadding="2"><pen lineWidth="1.5"/><topPen lineWidth="1.5"/><leftPen lineWidth="1.0"/><bottomPen lineWidth="1.5"/><rightPen lineWidth="1.0"/></box><textElement textAlignment="Center" verticalAlignment="Middle" markup="styled"><font fontName="FreeSerif" size="12" isUnderline="true" /></textElement><text><![CDATA[ TEXT <sub>subscript</sub> TEXT ]]></text></staticText></band></title></jasperReport>[/code]
  4. Ok, I've continued digging the source code and I've founded that the problem occure when jrprint is drawing to the Image, but only with specific fonts. 

    For example, if you use DejaVu Serif, DejaVu Sans .. but everything is ok when I use font FreeSans. 

    Maybe somone can confirm that this is a bug .. class is JRPrinterAWT.java, method: printPageToImage.

    Jasperreport  version is 6.3.0, jrxml for testing this:

    <?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="rptZahtev" pageWidth="595" pageHeight="842" columnWidth="538" leftMargin="20" rightMargin="37" topMargin="21" bottomMargin="10" uuid="bd88b67f-8665-4395-b673-cfb74d86ad0a">
    <property name="ireport.zoom" value="1.2100000000000124"/>
    <property name="ireport.x" value="0"/>
    <property name="ireport.y" value="505"/>
    <background>
    <band splitType="Stretch"/>
    </background>
    <title>
    <band height="144" splitType="Stretch">
    <staticText>
    <reportElement uuid="57c28347-e699-4c46-9dee-f54048a6f079" x="221" y="0" width="221" height="72"/>
    <box topPadding="2" leftPadding="2">
    <pen lineWidth="1.5"/>
    <topPen lineWidth="1.5"/>
    <leftPen lineWidth="1.0"/>
    <bottomPen lineWidth="1.5"/>
    <rightPen lineWidth="1.0"/>
    </box>
    <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
    <font fontName="DejaVu Serif" size="12" isUnderline="true" isPdfEmbedded="true"/>
    </textElement>
    <text><![CDATA[TEXT <sub>subscript</sub> TEXT]]></text>
    </staticText>
    <staticText>
    <reportElement uuid="57c28347-e699-4c46-9dee-f54048a6f079" x="221" y="72" width="221" height="72"/>
    <box topPadding="2" leftPadding="2">
    <pen lineWidth="1.5"/>
    <topPen lineWidth="1.5"/>
    <leftPen lineWidth="1.0"/>
    <bottomPen lineWidth="1.5"/>
    <rightPen lineWidth="1.0"/>
    </box>
    <textElement textAlignment="Center" verticalAlignment="Middle" markup="styled">
    <font fontName="FreeSerif" size="12" isUnderline="true" isPdfEmbedded="true"/>
    </textElement>
    <text><![CDATA[ TEXT <sub>subscript</sub> TEXT ]]></text>
    </staticText>
    </band>
    </title>
    </jasperReport>
     
  5. I still have this problem with latest jaseprreport libraries 6.3.0. What I've noticed is that this is happenning only when I use JRViewer for the preview.

    If I export report to the pdf that everything is ok.

     

    Any workaround for this?

  6. Hello,

    when doing report preview in netbeans, first is generate report_name.txt and then generated report.

     

    Can someone tell me how to disable generating report_name.txt?

     

×
×
  • Create New...