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

Problem in Converting JasperPrint to XML


Recommended Posts

By: kumar potla - kumarjasper

Problem in Converting JasperPrint to XML

2006-06-12 08:47

i have this code in one of my JRXML file

<style name="Text" isDefault="true" mode="Opaque" lineSpacing="Single" fontName="Arial" fontSize="12" isBold="false">

<conditionalStyle>

<conditionExpression><![CDATA[new Boolean($F{style.fontSize}.equals("SMALL"))]]></conditionExpression>

<style isDefault="false" style="Text" isStyledText="true" isBlankWhenNull="true" fontName="Arial" fontSize="8"/>

</conditionalStyle>

<conditionalStyle>

<conditionExpression><![CDATA[new Boolean($F{style.fontSize}.equals("MEDIUM"))]]></conditionExpression>

<style isDefault="false" style="Text" isStyledText="true" isBlankWhenNull="true" fontName="Arial" fontSize="10"/>

</conditionalStyle>

<conditionalStyle>

<conditionExpression><![CDATA[new Boolean($F{style.fontSize}.equals("LARGE"))]]></conditionExpression>

<style isDefault="false" style="Text" isStyledText="true" isBlankWhenNull="true" fontName="Arial" fontSize="12"/>

</conditionalStyle>

</style>

 

i was ablt to generate the PDF successfully, but when i try to convert to xml it is appending 100 to the style name( Text).. here is the Exception.

Please let me know if anyone knows the Problem.

 

<text textAlignment="Right" textHeight="13.798828" isStyledText="true" lineSpacingFactor="1.1499023" leadingOffset="-2.3466797">

<reportElement style="Text100" x="25" y="586" width="194" height="13"/>

<textContent><![CDATA[ReviewedBy]]></textContent>

</text>

 

 

In The Above statement it is appending 100.

and throwing Exception called Style Text100 not found.

 

 

 

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Problem in Converting JasperPrint to XML

2006-06-14 06:20

 

Hi,

 

When using conditional styles in the report

template, the engine will create additional

report style definitions in the generated document.

The sequence of 1 and 0 added to the name of

the original style corresponds to the values

the style conditions at the moment of rendering.

So in your case "Text100" is a consolidated

report style definition obtained when only the

first condition in the original style was true (1)

and the other two were false (0).

 

This behavior is normal. However, there is

no reason for the consolidated report style

definition to be missing from the generated XML.

 

Are manipulating the generated XML file in any

particular way?

 

Thank you,

Teodor

 

 

 

By: kumar potla - kumarjasper

RE: Problem in Converting JasperPrint to XML

2006-06-14 14:29

JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, builder.getJasperParams(), ds.create(jasperReport));

String reportAsXML = JasperExportManager.exportReportToXml(jasperPrint);

log.debug(reportAsXML);

JasperExportManager.exportReportToPdfFile(jasperPrint, "C:/lisreports.pdf");

report = new Report();

report.setReportType(getReportGenerationType());

report.setReport(reportAsXML.getBytes());

 

 

In the above Piece of code when i print reportAsXML Object it is appending the 100 to styles( As Code show below).

<text textHeight="9.199219" lineSpacingFactor="1.1499023" leadingOffset="-1.5644531">

<reportElement style="Text100" x="25" y="348" width="561" height="11"/>

<textContent><![CDATA[ThinPrep]]></textContent>

</text>

Now When i try to use the statement reportAsXML.getBytes() it is giving the following Exception

 

Style not Found :style Text100.

 

Please let me know.

Thanks.

 

 

 

 

 

By: Teodor Danciu - teodord

RE: Problem in Converting JasperPrint to XML

2006-06-15 00:44

 

Hi,

 

How are we supposed to know what are you doing in

this "Report" class of yours when you call setReport()???

 

You can search the JasperReports source files

and you can see there is no "Style not Found"

message anywhere.

 

The problem is in your code.

 

If you are confronted with potential JasperReports

problems, please provide full stack trace

so that we can see what happens and what the

problem is.

Otherwise I don't see how anybody could help.

 

Thank you,

Teodor

 

 

 

By: kumar potla - kumarjasper

RE: Problem in Converting JasperPrint to XML

2006-06-16 09:41

Hi Teodor I am very sorry for that ambigious question posted above. Here is the problem we are facing:

 

we have one Jrxml with Conditional styles defined as below:

 

<?xml version="1.0" encoding="UTF-8"?>

<!-- Created using JasperAssistant (http://www.jasperassistant.com) -->

<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

 

<jasperReport name="NodeTwoColumn" pageWidth="563" pageHeight="842" columnWidth="563" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" whenResourceMissingType="Empty">

<property name="com.jasperassistant.designer.GridWidth" value="12"/>

<property name="com.jasperassistant.designer.GridHeight" value="12"/>

<property name="com.jasperassistant.designer.SnapToGrid" value="false"/>

<property name="com.jasperassistant.designer.Grid" value="false"/>

<style name="Text" isDefault="true" mode="Opaque" lineSpacing="Single" fontName="Arial" fontSize="12" isBold="false">

<conditionalStyle>

<conditionExpression><![CDATA[new Boolean($F{style.fontSize}.equals("SMALL"))]]></conditionExpression>

<style isDefault="false" style="Text" isStyledText="true" isBlankWhenNull="true" fontName="Arial" fontSize="8"/>

</conditionalStyle>

<conditionalStyle>

<conditionExpression><![CDATA[new Boolean($F{style.fontSize}.equals("MEDIUM"))]]></conditionExpression>

<style isDefault="false" style="Text" isStyledText="true" isBlankWhenNull="true" fontName="Arial" fontSize="10" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

</conditionalStyle>

<conditionalStyle>

<conditionExpression><![CDATA[new Boolean($F{style.fontSize}.equals("LARGE"))]]></conditionExpression>

<style isDefault="false" style="Text" isStyledText="true" isBlankWhenNull="true" fontName="Arial" fontSize="12"/>

</conditionalStyle>

</style>

<style name="BoldText" isDefault="false" style="Text" hAlign="Right" isStyledText="true" isBlankWhenNull="true" fontSize="8" pdfFontName="Helvetica-Bold"/>

<field name="content" class="java.lang.Object"/>

<field name="title" class="java.lang.String"/>

<field name="style.fontSize" class="java.lang.String"/>

<field name="type" class="java.lang.String"/>

<pageHeader>

<band height="5">

<printWhenExpression><![CDATA[new Boolean($F{content} != null)]]></printWhenExpression>

</band>

</pageHeader>

<detail>

<band height="11">

<printWhenExpression><![CDATA[new Boolean($F{content} != null)]]></printWhenExpression>

<textField isBlankWhenNull="false">

<reportElement style="BoldText" positionType="Float" x="0" y="0" width="194" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>

<textElement textAlignment="Right" isStyledText="true"/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{title}]]></textFieldExpression>

</textField>

<textField isStretchWithOverflow="true">

<reportElement style="Text" positionType="Float" stretchType="RelativeToTallestObject" x="199" y="0" width="363" height="11" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>

<textElement textAlignment="Left" isStyledText="true"/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{content}.toString()]]></textFieldExpression>

</textField>

</band>

</detail>

</jasperReport>

 

2).

when we got the JasperPrint Object of the above Jrxml file through below statement

String reportAsXML = JasperExportManager.exportReportToXml(jasperPrint);

log.debug(reportAsXML);(when we print that we got as below).

 

<text textAlignment="Center" textHeight="10.349121" lineSpacingFactor="1.1499023" leadingOffset="-1.7600098">

<reportElement x="353" y="445" width="186" height="11"/>

<font fontName="Arial" size="9" isBold="true" isItalic="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="true"/>

<textContent><![CDATA[image 2:]]></textContent>

</text>

<text textAlignment="Center" textHeight="11.499023" lineSpacingFactor="1.1499023" leadingOffset="-1.9555664">

<reportElement style="SectionHeader100100" mode="Opaque" x="25" y="283" width="563" height="13"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000" rightBorder="None" rightBorderColor="#000000"/>

<font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1252" isPdfEmbedded="true"/>

<textContent><![CDATA[iMAGES]]></textContent>

</text>

<rectangle>

<reportElement mode="Opaque" x="25" y="479" width="561" height="31"/>

<graphicElement pen="None" fill="Solid"/>

</rectangle>

<rectangle>

<reportElement mode="Transparent" x="25" y="479" width="561" height="31"/>

<graphicElement pen="None" fill="Solid"/>

</rectangle>

<text textAlignment="Right" textHeight="9.199219" isStyledText="true" lineSpacingFactor="1.1499023" leadingOffset="-1.5644531">

<reportElement style="BoldText" x="25" y="484" width="194" height="11"/>

<textContent><![CDATA[iNTERPRETATION]]></textContent>

</text>

<text textAlignment="Left" textHeight="13.798828" isStyledText="true" lineSpacingFactor="1.1499023" leadingOffset="-2.3466797">

<reportElement style="Text100" x="224" y="484" width="363" height="13"/>

<textContent><![CDATA[interpretation]]></textContent>

</text>

<text textAlignment="Right" textHeight="9.199219" isStyledText="true" lineSpacingFactor="1.1499023" leadingOffset="-1.5644531">

<reportElement style="BoldText" x="25" y="497" width="194" height="11"/>

<textContent><![CDATA[COMMENT]]></textContent>

</text>

<text textAlignment="Left" textHeight="13.798828" isStyledText="true" lineSpacingFactor="1.1499023" leadingOffset="-2.3466797">

<reportElement style="Text100" x="224" y="497" width="363" height="13"/>

<textContent><![CDATA[No Comments]]></textContent>

</text>

<text textAlignment="Center" textHeight="11.499023" lineSpacingFactor="1.1499023" leadingOffset="-1.9555664">

<reportElement style="SectionHeader100100" mode="Opaque" x="25" y="465" width="563" height="13"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000" rightBorder="None" rightBorderColor="#000000"/>

<font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1252" isPdfEmbedded="true"/>

<textContent><![CDATA[iNTERPRETATION]]></textContent>

</text>

<rectangle>

<reportElement mode="Opaque" x="25" y="527" width="561" height="15"/>

<graphicElement pen="None" fill="Solid"/>

</rectangle>

<rectangle>

<reportElement mode="Transparent" x="25" y="527" width="561" height="15"/>

<graphicElement pen="None" fill="Solid"/>

</rectangle>

<text verticalAlignment="Middle" textHeight="11.499023" lineSpacingFactor="1.1499023" leadingOffset="-1.9555664">

<reportElement style="Text100" x="25" y="528" width="561" height="11"/>

<textContent><![CDATA[Morphology]]></textContent>

</text>

<text textAlignment="Center" textHeight="11.499023" lineSpacingFactor="1.1499023" leadingOffset="-1.9555664">

<reportElement style="SectionHeader100100" mode="Opaque" x="25" y="513" width="563" height="13"/>

<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000" rightBorder="None" rightBorderColor="#000000"/>

<font fontName="Arial" size="10" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica-Bold" pdfEncoding="Cp1252" isPdfEmbedded="true"/>

<textContent><![CDATA[MORPHOLOGY]]></textContent>

</text>

 

 

3). We stored it in Databse.

4). We Retrived it from the database.( and Cross checked whether both were same, Yes They are Absolutely same Objects)

5). Now we are trying to Convert byte[] to JasperPrint Object through below statements

1). ByteArrayInputStream bin = new ByteArrayInputStream(byteArray);

2). JasperPrint jasperPrint = JRPrintXmlLoader.load(bin);( Here bin is the [] byte Array )

At this statement we are getting Exception as below

 

2006-06-16 11:38:03,175 INFO [sTDOUT] java.lang.Exception: Unknown report style : BoldText

2006-06-16 11:38:03,175 INFO [sTDOUT] at net.sf.jasperreports.engine.xml.JRPrintElementFactory.createObject(JRPrintElementFactory.java:132)

2006-06-16 11:38:03,175 INFO [sTDOUT] at org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:389)

2006-06-16 11:38:03,175 INFO [sTDOUT] at org.apache.commons.digester.Digester.startElement(Digester.java:1361)

2006-06-16 11:38:03,175 INFO [sTDOUT] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)

2006-06-16 11:38:03,175 INFO [sTDOUT] at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)

2006-06-16 11:38:03,191 INFO [sTDOUT] at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)

2006-06-16 11:38:03,191 INFO [sTDOUT] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)

2006-06-16 11:38:03,191 INFO [sTDOUT] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)

2006-06-16 11:38:03,191 INFO [sTDOUT] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

2006-06-16 11:38:03,191 INFO [sTDOUT] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

2006-06-16 11:38:03,191 INFO [sTDOUT] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

2006-06-16 11:38:03,191 INFO [sTDOUT] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

2006-06-16 11:38:03,191 INFO [sTDOUT] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

2006-06-16 11:38:03,207 INFO [sTDOUT] at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)

2006-06-16 11:38:03,207 INFO [sTDOUT] at org.apache.commons.digester.Digester.parse(Digester.java:1666)

2006-06-16 11:38:03,207 INFO [sTDOUT] at net.sf.jasperreports.engine.xml.JRPrintXmlLoader.loadXML(JRPrintXmlLoader.java:149)

2006-06-16 11:38:03,207 INFO [sTDOUT] at net.sf.jasperreports.engine.xml.JRPrintXmlLoader.load(JRPrintXmlLoader.java:133)

2006-06-16 11:38:03,207 INFO [sTDOUT] at com.ameripath.lis.apptier.reporting.delivery.FaxDelivery.addContent(FaxDelivery.java:167)

2006-06-16 11:38:03,207 INFO [sTDOUT] at com.ameripath.lis.apptier.reporting.delivery.FaxDelivery.<init>(FaxDelivery.java:74)

2006-06-16 11:38:03,207 INFO [sTDOUT] at com.ameripath.lis.apptier.factory.ReportDeliveryFactory.getReportDelivery(ReportDeliveryFactory.java:66)

2006-06-16 11:38:03,207 INFO [sTDOUT] at com.ameripath.lis.apptier.ejb.controller.ReportDeliveryControllerEJB.deliverReports(ReportDeliveryControllerEJB.java:137)

2006-06-16 11:38:03,207 INFO [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2006-06-16 11:38:03,207 INFO [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

2006-06-16 11:38:03,207 INFO [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

2006-06-16 11:38:03,222 INFO [sTDOUT] at java.lang.reflect.Method.invoke(Method.java:585)

2006-06-16 11:38:03,222 INFO [sTDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)

2006-06-16 11:38:03,222 INFO [sTDOUT] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)

2006-06-16 11:38:03,222 INFO [sTDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)

2006-06-16 11:38:03,222 INFO [sTDOUT] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)

2006-06-16 11:38:03,222 INFO [sTDOUT] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:196)

2006-06-16 11:38:03,222 INFO [sTDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)

2006-06-16 11:38:03,222 INFO [sTDOUT] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)

2006-06-16 11:38:03,222 INFO [sTDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)

2006-06-16 11:38:03,222 INFO [sTDOUT] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)

2006-06-16 11:38:03,222 INFO [sTDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)

2006-06-16 11:38:03,222 INFO [sTDOUT] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)

2006-06-16 11:38:03,238 INFO [sTDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)

2006-06-16 11:38:03,238 INFO [sTDOUT] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)

2006-06-16 11:38:03,238 INFO [sTDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)

2006-06-16 11:38:03,238 INFO [sTDOUT] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)

2006-06-16 11:38:03,238 INFO [sTDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)

2006-06-16 11:38:03,238 INFO [sTDOUT] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:178)

2006-06-16 11:38:03,238 INFO [sTDOUT] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:74)

2006-06-16 11:38:03,238 INFO [sTDOUT] at $Proxy157.deliverReports(Unknown Source)

2006-06-16 11:38:03,238 INFO [sTDOUT] at com.ameripath.lis.apptier.ejb.mdb.ReportDeliveryMDB.onMessage(ReportDeliveryMDB.java:49)

2006-06-16 11:38:03,253 INFO [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2006-06-16 11:38:03,253 INFO [sTDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

2006-06-16 11:38:03,253 INFO [sTDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

2006-06-16 11:38:03,253 INFO [sTDOUT] at java.lang.reflect.Method.invoke(Method.java:585)

2006-06-16 11:38:03,253 INFO [sTDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:109)

2006-06-16 11:38:03,253 INFO [sTDOUT] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)

2006-06-16 11:38:03,253 INFO [sTDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)

2006-06-16 11:38:03,253 INFO [sTDOUT] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)

2006-06-16 11:38:03,253 INFO [sTDOUT] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:196)

2006-06-16 11:38:03,253 INFO [sTDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)

2006-06-16 11:38:03,253 INFO [sTDOUT] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:54)

2006-06-16 11:38:03,253 INFO [sTDOUT] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)

2006-06-16 11:38:03,253 INFO [sTDOUT] at org.jboss.ejb3.mdb.MDB.localInvoke(MDB.java:942)

2006-06-16 11:38:03,253 INFO [sTDOUT] at org.jboss.ejb3.mdb.MDB$MessageListenerImpl.onMessage(MDB.java:1167)

2006-06-16 11:38:03,269 INFO [sTDOUT] at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)

2006-06-16 11:38:03,269 INFO [sTDOUT] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)

2006-06-16 11:38:03,269 INFO [sTDOUT] at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)

2006-06-16 11:38:03,269 INFO [sTDOUT] at org.jboss.mq.SpySession.run(SpySession.java:333)

2006-06-16 11:38:03,269 INFO [sTDOUT] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)

2006-06-16 11:38:03,269 INFO [sTDOUT] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)

2006-06-16 11:38:03,269 INFO [sTDOUT] at java.lang.Thread.run(Thread.java:595)

2006-06-16 11:38:03,269 INFO [sTDOUT]

 

 

By: Teodor Danciu - teodord

RE: Problem in Converting JasperPrint to XML

2006-06-19 01:25

 

Hi,

 

This is still ambiguous.

The JasperExportManager.exportReportToXml(jasperPrint)

method can not possibly produce the exact XML

output you posted. That one is not even valid XML

since it does not have a root tag.

 

The XML output that the exporter produces contains

the <jasperPrint> root tag as well as the DTD reference at the top.

What you posted is just a portion of that XML

JasperReports is producing. No wonder it is not valid and cannot be parsed back into a JasperPrint object again.

 

Thank you,

Teodor

 

 

 

By: Teodor Danciu - teodord

RE: Problem in Converting JasperPrint to XML

2006-07-05 01:06

 

Hi,

 

Are you using subreports?

 

Thank you,

Teodor

 

 

 

By: kumar potla - kumarjasper

RE: Problem in Converting JasperPrint to XML

2006-07-05 08:20

Yes, We are using the subReports. we were able to solve the problem. Here is the solution:

 

Problem: We have Styles defined in subreports.when we i m generating jasperPrint object from parent jrxml the style definitions are not part of jasperPrint obejct.

 

Solution: we have replicated styles in parent JRXML also.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...