![](http://content.invisioncic.com/i328763/set_resources_3/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
libero
-
Posts
66 -
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 libero
-
-
Does nobody else have the same problem?
-
Nobody an idea? :-)
-
Hello,
is it possible to use the GenericElementPdfHandler in JaspersoftStudio when generation the PDF preview.
I have set the two propereties:
net.sf.jasperreports.extension.registry.factory.jr.statistics=net.sf.jasperreports.extensions.SpringExtensionsRegistryFactory
net.sf.jasperreports.extension.jr.statistics.spring.beans.resource=net/sf/jasperreports/pdf/beans.xmlThis works perfectly when I create the report with the JasperReports API. But in the JaspersoftStudio I receive the error when generation the pdf preview:
no generic element handlers found for namespace [xyz].
The namespace is correctly defined in the beans.xml.
Many thanks.
libero
-
Thanks for your answer. It's legacy code and works fine in the old iReport. But I think it's a Bug in the JaspersoftStudio. I will report a mistake in the Bug Database.
Orebil
-
Thanks for your answer. But I known that there are many differences between iReport and jaspersoftStudio. That's not the problem. :-)
The problem is that the xml tag "ENTITY" doesn't work in the JaspersoftStudio (see Screenshot in the first question).
Why couldn't the JasperSoftstudio load the ReportStyles.ent file? That's the problem .
Have anybody else an answer or the same problem with the ENTITY tag?
Orebil
-
Hello,
I have a JasperReports jrxml file with the following entries:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN"
"http://jasperreports.sourceforge.net/dtds/jasperreport.dtd" [
<!ENTITY reportStyles SYSTEM "./ReportStyles.ent">
]>
<jasperReport
name="..."
>
<property name="ireport.scriptlethandling" value="0"/>
<property name="ireport.encoding" value="UTF-8"/>
<import value="java.util.*"/>
<import value="net.sf.jasperreports.engine.*"/>
<import value="net.sf.jasperreports.engine.data.*"/>
&reportStyles;If I load the jrxml file in the JaspersoftStudio I receive the following error:
The file "ReportStyles.ent" exists in the folder "D:JaspersoftStudio-6.5.1.final".
I have additional set the jasperreport property "net.sf.jasperreports.xml.load.unknown.entities" to "true" in the JaspersoftStudio.
I think the property is ignored by the JaspersoftStudio.
Why the error message appears and how can I solve the problem?
In the iReport 5.6.0 its work fine. :-)
Many thanks.
orebil
-
-
-
-
Hello,
are there any translation files available for the german language for the Jaspersoft Studio?
Many thanks.
libero
-
Hello,
No one else an idea?
libero
-
Hello elizam,
thanks for your answer.
Do you mean the feature "font extensions"?
I know this feature but I don't want set a font for a special language (like Chinese). I want change the font name in the textfield depends on the content of the textfield.
libero
-
Hello,
I have a simple question but I fear there is no simple answer. I just want to set the font for a text field dynamically.
The content of the text field comes from the database and can include everthing. (Chinese or other characters or unicode).
I would like set the font name of the text field in a scriptlet methode. But it does not work. (see http://community.jaspersoft.com/questions/538566/problems-setfontname-dynamically)
I want to use the method Font.canDisplayUpTo(...) to find the right font and then set it dynamically.
I know the font extensions, the conditional styles and the styled text features, but I could not solve my problem yet.
Has anyone an idea or a similar problem ever solved?
Thanks for any hint.
libero
-
Hello,
any other ideas?
orebil
-
Hello,
I know that JRSubreport is inhertis from JRElement, but this doesn't help me.
I wouldn't change the subreport I would change an element e.q. JRTextField in the subreport.
Thanks.
-
Hello,
thank you for the answer, but this isn't the solution for my problem. :-)
II wouldn't get a return value from a subreport but I would get an element from the subreport to change e.q. the markup of a JRTextfield.
orebil.
-
Hello,
is it possible to get an element (e.q. JRTextfield) programmatically from a subreport?
I know I can use the method "JRBand.getElementByKey(...)" to get an element from a band. The band can I get when I use the method "JasperReport.getDetailSection().getBands();"
But I would get an element from a subreport and not from the master report.
Thanks.
orebil
-
Hello Massimo,
thanks for your answer and for the tip with the feature request.
The problem is, that we have customers who use the Jaspersoft Studio standalone version and not the Eclipse plugin.
But the customer wants to work with the latest version of Java.
P.S.: Sorry for the cross posting.
Thanks.
BR
libero
-
Hello,
the plugin for Eclipse supports JDK1.8, so it is technically possible, why not support the stand-alone version the JDK1.8?
I really need the JDK1.8 in the standalone version. (And I think I am not the only one.)
When Jaspersoft Studio supports the Jdk1.8?
JasperReports supports the JDK1.8 for some time.
Thanks.
BR
libero
-
Hello,
if the plugin for Eclipse supports JDK1.8, so it is technically possible, why not support the stand-alone version the JDK1.8.
I really need the JDK1.8 in the standalone version. (And I think I am not the only one.)
BR
libero
-
Hello Massimo,
thanks for your answer.
Then I'll probably have to wait.
Thanks,
orebil
-
Hello Massimo,
thanks for your quick answer.
Currenty I use the JSS Version 6.0.0 with JRE 1.7.0.u25.
When can I expect a standalone version that supports JDK 1.8?
Thanks,
orebil
-
Hello,
why Jaspersoft Studio not supported the JDK1.8?
orebil
-
Hello, I have the following problem:
I want to know when creating a report, whether a text field can display the text or not and if not I want to set a Unicode font.
For this purpose I use the scriptlet to set the appropriate font on the appropriate text box.
It works far too well.Unfortunately, while filling all the text fields are always used only the first font set.
This means that the method "jrBaseTextElement.setFontName (UNICODE_FONT) " only works once.
BR
libero
Code: protected void checkUnicodeFont(String str, String reportKey){ try { JasperReport jasperReport = (JasperReport) getParameterValue("JASPER_REPORT"); JRBand[] bands = jasperReport.getDetailSection().getBands(); for (JRBand jrBand : bands) { JRElement element = jrBand.getElementByKey(reportKey); if (element instanceof JRBaseTextElement) { JRBaseTextElement jrBaseTextElement = (JRBaseTextElement) element; String reportFontName = jrBaseTextElement.getFontName(); Font reportFont = new Font(reportFontName, Font.PLAIN, 10); if (reportFont.canDisplayUpTo(str) != -1) { jrBaseTextElement.setFontName(UNICODE_FONT); } } } } catch (Exception e) { LogWriter.error(this, "Couldn't set font '" + UNICODE_FONT + "' for the report field '" + reportKey + "'", e); }}[/code]
net.sf.jasperreports.legacy.text.measuring doesn't work for me
in Products
Posted
Hello,
I think the new property "net.sf.jasperreports.legacy.text.measuring" doesn't work correctly. All of my text fields in the PDF export (except the top one) are each shifted by one more pixel. The last text field is then shifted by several text fields in total. Setting the property to "true" or "false" makes no difference. But I need the PDF export just like in version 6.18.1. I this a JasperReports bug?
Thank you.
libero