2011-01-21 12 views
0

Jasperプラグインを使用してアプリケーションを作成しています.iReportsでレポートを作成し、プレビューボタンをクリックするとグラフがiReportsに表示されます。Jasper Pluginを使用したグラフがHTML形式で表示されない

ファイルをコピーしてレポートアプリケーションフォルダにコピーし、PDF形式とHTML形式のlist.gspにジャスパータグを配置し、アプリケーションを実行してビューを表示します。しかし、私はHTML形式では、ページが壊れた画像を表示するclicしたとき。ページは 'nullimg_0_0_9'イメージを見つけようとしましたが、見つからなかったためです。

//web-app/reports/GraficaOperacionComercialProgramada.jrxmlにレポートファイルを配置しました。 私は、Grails 1.3.6、Jasper Plugin 1.1.6.3、iReports 4.0をUbuntu 10.10で使用しています。

私が間違っていることを知っている人はいますか?

これは私のlist.gspのコードです:

<g:jasperReport 
     jasper="GraficaOperacionComercialProgramada" 
     format="${message(code: 'global.formatosReportes.label')}" 
     name="Gráfica sobre el total de carga por tipo de operación"> 
    <br> 
</g:jasperReport> 

これは、レポートのコードです:

http://jasperreports.sourceforge.net/xsd/jasperreport.xsd」名前= "GraficaOperacionComercialProgramada2" 言語= "グルービー" ページ幅= "612" のpageHeight = "792" columnWidthの= "555" LEFTMARGIN = "20" rightMargin = "20" TOPMARGIN = "20" bottomMargin = "20"> 0123事前に

   </textElement> 
       <text><![CDATA[Gráfica Concepto - Total de carga por categoría]]></text> 
      </staticText> 
     </band> 
    </title> 
    <pageHeader> 
     <band height="35" splitType="Stretch"/> 
    </pageHeader> 
    <columnHeader> 
     <band height="20" splitType="Stretch"> 
      <staticText> 
       <reportElement x="36" y="0" width="100" height="20"/> 
       <textElement> 

       </textElement> 
       <text><![CDATA[categoria]]></text> 
      </staticText> 
      <staticText> 
       <reportElement x="220" y="0" width="100" height="20"/> 
       <textElement> 

       </textElement> 
       <text><![CDATA[totalPasajeros]]></text> 
      </staticText> 
     </band> 
    </columnHeader> 
    <detail> 
     <band height="22" splitType="Stretch"> 
      <textField> 
       <reportElement x="36" y="0" width="100" height="20"/> 
       <textElement/> 
       <textFieldExpression class="java.lang.String"><![CDATA[$F{categoria}]]></textFieldExpression> 
      </textField> 
      <textField> 
       <reportElement x="220" y="2" width="100" height="20"/> 
       <textElement/> 
       <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{totalPasajeros}]]></textFieldExpression> 
      </textField> 
     </band> 
    </detail> 
    <columnFooter> 
     <band height="45" splitType="Stretch"/> 
    </columnFooter> 
    <pageFooter> 
     <band height="54" splitType="Stretch"/> 
    </pageFooter> 
    <summary> 
     <band height="340" splitType="Stretch"> 
      <pieChart> 
       <chart> 
        <reportElement x="0" y="0" width="572" height="340"/> 
        <chartTitle/> 
        <chartSubtitle/> 
        <chartLegend/> 
       </chart> 
       <pieDataset> 
        <keyExpression><![CDATA[$F{categoria}]]></keyExpression> 
        <valueExpression><![CDATA[$F{totalPasajeros}]]></valueExpression> 
        <labelExpression><![CDATA[$F{categoria}]]></labelExpression> 
       </pieDataset> 
       <piePlot> 
        <plot/> 
        <itemLabel color="#000000" backgroundColor="#FFFFFF"/> 
       </piePlot> 
      </pieChart> 
     </band> 
    </summary> 
</jasperReport> 

おかげで、ESalomon。

答えて

0

ジャスパープラグインのレポートディレクトリを定義する必要があるようです。 grails-app/conf/Config.groovyにjasper.dir.reportsという名前のプロパティがあり、その値がjasperまたはjrxmlファイルのフルパスであることを確認してください。

関連する問題