bsteimer
-
Posts
7 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Downloads
Posts posted by bsteimer
-
-
Hi,
after updating JasperServer and JasperReports to 4.0.1 I have a really strange PDF output behaviour. As you can see in the screenshot which actually shows some parts of the output PDF.
1. Although the textfield (Privatkunden) is long enough it is displayed with a linebreak. The textfield has the text field expression
$F{kundenArtString}+"n"
In former versions this was no problem and displayed in one line. Same with 0 kWh, this is a text field with the expression class java.lang.Long and a pattern (###,##0 kWh).
2. Heading "WBKZ" and "Staffel" are static text fields and it seems to me that they are long enough but also there is a line break which wasn't there in former versions.
3. Between VWZ and Tarif are dots which shouldn't be there.
4. Right hand of the dots is an "A" overprinted. I don't know where it comes from.
Hope you can help me. Thanks in advice.
Best regards
Benjamin
-
Hi,
I'm a bit confused about the behaviour of iReport when using isSummaryWithPageHeaderAndFooter.
If I tick the option "Summary with Page Header and Footer" nothing happens and it'll not be printed. So I manually tried to add the parameter isSummaryWithPageHeaderAndFooter="true" so the header looked like this
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD JasperReport//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport name="reportName" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isSummaryNewPage="true" isSummaryWithPageHeaderAndFooter="true">After this I ended up with the following error message:
Error loading the report template:
org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'isSummaryWithPageHeaderAndFooter' is not allowed to appear in element 'jasperReport'.I've created a new report for testing and by accident I've realized that this one had a different header which looked like 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="report1" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isSummaryNewPage="true">I've also added the property isSummaryWithPageHeaderAndFooter and it worked. But if I then modified something in the designer view afterwards the header is changed back to the one in the first example again.
Does anyone have an idea how this should work or what is going wrong?
I'm using iReport 4.0.2.
Best regards
Benjamin
-
Hi wichogg,
thanks for your reply. It got me to the solution although it seems not logical to me using a jar file (jasperserver-ireport-plugin-3.7.0.jar) from an old JasperServer version which is actually not provided which JasperServer 4.0. But it works :-)
So thanks a lot
Regards
Benjamin
-
Did anyone get the WSClient example got to work under JasperServer 4.0+? I found the so called documentary the Webservices Guide but although it says it's for version 4.0 I can't belive this because there are referenced many jar's which aren't shipped with the current JasperServer version anymore.
So what I did is to copy the following jar files into WEB-INF/lib:
- jasperreports-4.0.2.jar
- jasperreports-applet-4.0.2.jar
- jasperreports-javaflow-4.0.2.jar
- jasperserver-common-ws-4.1.0.jar
- com-jaspersoft-ireport-jasperserver.jar
- com-jaspersoft-ireport.jar
- ord-openide-util.jar
But after all it ends up with the earlier mentioned
15:39:11,310 ERROR [sTDERR] 05.07.2011 15:39:11 org.openide.util.NbPreferences getPreferencesProvider
WARNUNG: NetBeans implementation of Preferences not found: java.lang.Exception
at org.openide.util.NbPreferences.getPreferencesProvider(NbPreferences.java:110)
at org.openide.util.NbPreferences.forModule(NbPreferences.java:75)
at com.jaspersoft.ireport.designer.IReportManager.getPreferences(IReportManager.java:1245)
at com.jaspersoft.ireport.jasperserver.ws.WSClient.getManagementService(WSClient.java:642)So does anyone have an idea how to use the WSClient under JasperServer 4.0+ CE or where I can get some examples oder documentary?
Regards
Benjamin
Strange pdf output after update to 4.1.0
in Products
Posted
I found the solution here:
http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=89239