Jump to content
We've recently updated our Privacy Statement, available here ×

duane5000

Members
  • Posts

    1
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by duane5000

  1. These links are broken. I'm looking for xml sample to show how styles are applied. Inline is fine. I used the following code(added the style='xx' in an attempt to overcome a SaxParse error I'm getting).: org.xml.sax.SAXParseException: Element type "style" must be declared. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384) at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318) at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1929) I've tried several variations of this with no success. Our Jasper version is 0.6.0 as we are expanding an earlier implementation. We are planning to upgrade in a separate effort. ** Code attached **Using: DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> Can we point to explicit version of the DTD? Is this necesary? <! Code:<!-- Atempting to get alternating row colors --><jasperReportname="nccDetail"columnCount="1"printOrder="Vertical"orientation="Landscape"pageWidth="1670"pageHeight="725"columnWidth="1640"columnSpacing="0"leftMargin="15"rightMargin="15"topMargin="15"bottomMargin="15"whenNoDataType="NoPages"isTitleNewPage="false"isSummaryNewPage="false"><property name="ireport.scriptlethandling" value="0"/><property name="ireport.zoom" value="1.0"/><property name="ireport.x" value="0"/><property name="ireport.y" value="0"/><style style="someStyle" name="rowColr" mode="Transparent" isDefault="true" pen="None" backcolor="#FFFFFF"><conditionalStyle><conditionExpression><![CDATA[$V{REPORT_COUNT}%2 == 1]]></conditionExpression><style style="none" backcolor="#99CCFF"/></conditionalStyle></style>**********<textField pattern="" isBlankWhenNull="false"> <reportElement x="880" y="0" width="60" height="15" style="rowColr"/> <textElement textAlignment="Center"/> <textFieldExpression><![CDATA[$F{columnName}]]></textFieldExpression></textField>
×
×
  • Create New...