我的iReport有问题,我正在使用iReport Designer 5.0.1。 它说iReport无法解析样式,但它没有告诉它是哪种样式。结肠后只有空白名称。最模糊的是,样式在我的其他jrxml报告文件中有效。
这是我的样式代码:
<style name="Kolom" mode="Opaque" forecolor="#FFFFFF" backcolor="#757575" fill="Solid" vAlign="Middle" fontName="Serif" fontSize="12" isBold="false">
<box topPadding="2" leftPadding="4" bottomPadding="2" rightPadding="2">
<pen lineWidth="0.55" lineColor="#616161"/>
<topPen lineWidth="0.55" lineColor="#616161"/>
<leftPen lineWidth="0.55" lineColor="#616161"/>
<bottomPen lineWidth="0.55" lineColor="#616161"/>
<rightPen lineWidth="0.55" lineColor="#616161"/>
</box>
<paragraph lineSpacing="Single"/>
</style>
<style name="Baris" mode="Opaque" forecolor="#666666" backcolor="#FFFFFF" fill="Solid" vAlign="Middle" fontName="Serif" fontSize="11" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false">
<pen lineWidth="1.0" lineColor="#FF6666"/>
<box topPadding="2" leftPadding="4" bottomPadding="2" rightPadding="2">
<pen lineWidth="0.55" lineColor="#CCCCFF"/>
<topPen lineWidth="0.55" lineColor="#CCCCFF"/>
<leftPen lineWidth="0.55" lineColor="#CCCCFF"/>
<bottomPen lineWidth="0.55" lineColor="#CCCCFF"/>
<rightPen lineWidth="0.55" lineColor="#CCCCFF"/>
</box>
<paragraph lineSpacing="Single"/>
</style>
iReport输出显示:
Error filling print... Could not resolve style(s):
net.sf.jasperreports.engine.JRRuntimeException: Could not resolve style(s): at net.sf.jasperreports.engine.fill.JRFillObjectFactory.checkUnresolvedReferences(JRFillObjectFactory.java:1579) at net.sf.jasperreports.engine.fill.JRFillObjectFactory.setStyles(JRFillObjectFactory.java:1506) at net.sf.jasperreports.engine.fill.JRBaseFiller.loadStyles(JRBaseFiller.java:1005) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:879) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:822) at net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:61) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:446) at net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:276) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:745) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:891) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Print not filled. Try to use an EmptyDataSource...