tofa
-
Posts
6 -
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 tofa
-
-
ekappel: did you get it working?
lucianc: I have:
<subDataset name="Votings"> <parameter name="voterPk" class="java.lang.Long"/> <parameter name="HIBERNATE_SESSION" class="org.hibernate.Session"/> <queryString> <![CDATA[sELECT v.votingCategory.id as catID FROM Voting v WHERE v.voter.pk = $P{voterPk}]]> </queryString> <field name="catID" class="java.lang.String"/> </subDataset>
<componentElement> <reportElement x="0" y="25" width="395" height="41"/> <c:list xmlns:c="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Vertical"> <datasetRun subDataset="Votings"> <datasetParameter name="voterPk"> <datasetParameterExpression><![CDATA[$F{voterPk}]]></datasetParameterExpression> </datasetParameter> <datasetParameter name="HIBERNATE_SESSION"> <datasetParameterExpression><![CDATA[$P{HIBERNATE_SESSION}]]></datasetParameterExpression> </datasetParameter> </datasetRun> <c:listContents height="41" width="395"> <frame> <reportElement x="0" y="0" width="393" height="31"/> <textField> <reportElement x="12" y="15" width="63" height="16"/> <textElement textAlignment="Right"/> <textFieldExpression class="java.lang.String"><![CDATA[$F{catID}]]></textFieldExpression> </textField> </frame> </c:listContents> </c:list> </componentElement>
Any ideas on what can be wrong?
Post Edited by tofa at 06/16/2010 11:56 -
I had missed to add jasperreports-font, spring-bean and spring-core.
It works now!
-
Thanks! It works now!
-
asejas: which spring libraries did you add?
-
Hi
I trying to generate at report with a ttf font, but also get the JRFontNotFoundException.
I trying to use the DejaVu Sans font.
I using Java EE 6 on Glassfish 3.0. iReport 3.7.1, JasperReport 3.7.1
<font fontName="DejaVu Sans" isUnderline="false" isPdfEmbedded="true"/>
I used Tools/Options/iReport/Fonts to import and "export as extension"
I generate jasperreports-fonts-DejaVu Sans.jar and I put in WEB-INF\lib
The jasperreports-fonts-DejaVu Sans.jar contains:
- fonts
- DejaVuSans.ttf
- fonts1273221481231.xml
- jasperreports_extension.propertiesfonts1273221481231.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<bean id="fontBean127322148123753178" class="net.sf.jasperreports.engine.fonts.SimpleFontFamily">
<property name="name" value="DejaVu Sans"/>
<property name="normal" value="fonts/DejaVuSans.ttf"/>
<property name="pdfEmbedded" value="true"/>
</bean>
</beans>
jasperreports_extension.properties:net.sf.jasperreports.extension.registry.factory.fonts=net.sf.jasperreports.extensions.SpringExtensionsRegistryFactorynet.sf.jasperreports.extension.fonts.spring.beans.resource=fonts/fonts1273221481231.xmlWhat am I doing wrong and what have I missed?
Hibernate connection problem
in Products
Posted
Hi
Did you found the solution for this?
I have added both the path to the sources and class files in classpath in iReport...
But still get this error.