![](http://content.invisioncic.com/i328763/set_resources_3/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
_freeman_
-
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_
-
-
How can I fill data from json dataset that are not part of the array?
Only array values get filled:
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.
-
Hello,
I can export multipage reports with different page orientations (page1 PORTRAIT, page2 LANDSCAPE ...) to the pdf, using batch mode (IS_CREATING_BATCH_MODE_BOOKMARKS = true).
Can someone tell me is it possible to preview this kind of reports in JRViewer?
Thank you very much.
-
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:
Workaround for this is to use <sup> tag with <sub>, like this TEXT <sub>subscript</sub><sup> </sup>TEXT, and voila:
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:
-
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]
-
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> -
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?
-
This is still happening, I tested with iReport-5.6.0.
Normal <sub>subscript</sub> normal
Normal subscript normal
Any workaround for this?
-
C'mon jasper gurus ..
this is simple question .. is this a jasper bug, or developer bug?
-
... same results with version 4.5.1
-
Ok .. can someone of admins confirm that this is a bug?
JasperReport version: 4.1.3
-
Does anyone have some sugestion?
-
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?
-
Hello,
I have problem with styled static text,
<font size="9">ONE <sub>TWO</sub> THREE</font>
Result I have is:
ONE two THREE
What am I doing wrong?
Post Edited by lazar at 04/03/2012 22:54
Problem with JSON dataset
in Products
Posted
Thank you very much @narcism, it is answered my question to the detail and solved my problems.