Hi All,
I trying to create a report template, which contains a table. The table should display the data and color according to the data in the table.The cell color is also saved in the xml,While I am trying to set the back ground color using the code
<xsl:attribute xdofo:ctx="block" name="background-color"><?c3color?></xsl:attribute>
I am getting an error which is
Font Dir: D:\Java\jre1.5.0_06\Template Builder for Word\fonts
Run XDO Start
RTFProcessor setLocale: en-us
FOProcessor setData: C:\ReportTemplates\report1.xml
FOProcessor setLocale: en-us
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(Unknown Source)
at oracle.apps.xdo.template.fo.datatype.Color.parseColorStr(Unknown Source)
at oracle.apps.xdo.template.fo.datatype.ColorPool.getColor(Unknown Source)
at oracle.apps.xdo.template.fo.datatype.Background.setBgColor(Unknown Source)
at oracle.apps.xdo.template.fo.datatype.Background.init(Unknown Source)
at oracle.apps.xdo.template.fo.datatype.Background.getBackground(Unknown Source)
at oracle.apps.xdo.template.fo.area.BlockArea.<init>(Unknown Source)
at oracle.apps.xdo.template.fo.area.BlockContainerArea.<init>(Unknown Source)
at oracle.apps.xdo.template.fo.area.TableCell.<init>(Unknown Source)
at oracle.apps.xdo.template.fo.elements.table.FOTableCell.createAreaObject(Unknown Source)
at oracle.apps.xdo.template.fo.elements.table.FOTableCell.doLayout(Unknown Source)
at oracle.apps.xdo.template.fo.elements.table.FOTableRow.doLayout(Unknown Source)
at oracle.apps.xdo.template.fo.elements.table.FOTableBody.doLayout(Unknown Source)
at oracle.apps.xdo.template.fo.elements.table.FOTableBody.doLayout(Unknown Source)
at oracle.apps.xdo.template.fo.elements.table.FOTable.doLayout(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FOBlock.doLayout(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FOBlock.doLayout(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FOBlock.doLayout(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FOFlow.doLayout(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.startLayout(Unknown Source)
at oracle.apps.xdo.template.fo.elements.FormattingEngine.run(Unknown Source)
at oracle.apps.xdo.template.fo.FOHandler.endElement(Unknown Source)
at oracle.apps.xdo.common.xml.XSLTHandler$EEEntry.sendEvent(Unknown Source)
at oracle.apps.xdo.common.xml.XSLTMerger.startElement(Unknown Source)
at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:167)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1182)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:301)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:268)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
at oracle.apps.xdo.template.fo.FOProcessingEngine.process(Unknown Source)
at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
at RTF2PDF.runRTFto(RTF2PDF.java:632)
at RTF2PDF.runXDO(RTF2PDF.java:466)
at RTF2PDF.main(RTF2PDF.java:254)
but I can set the cell back ground color using
<xsl:attribute xdofo:ctx="block" name="background-color">red</xsl:attribute>
<xsl:attribute xdofo:ctx="block" name="background-color">#123456</xsl:attribute>
the
<?c3color?>
is returning hexadecimal values.
pls help me resolve this ...
Thanks in advance..
Ranjith.