2016-04-19 17 views
2

私は、HTMLマークアップ言語またはスタイル付きのテキストフィールドへのパラメータ入力を持っています。しかし、私はタグを置くとき、それはまったく表示されません。HTMLタグテーブルをテキストフィールドに - JasperReport

JaspersoftはTHIDタグをサポート:

<b/>, <u/>, <i/>, <font/>,<sup/>, <sub/>, <li/>, <br/> 

は、htmlタグからテーブルを表示する方法はありますか?それができない場合は、代替ソリューションがありますか?

答えて

3

textFieldの中にhtmlテーブルを表示する方法があります。

生成属性のみ文字がどのように見えるかのために使用することができるHTML、ない にあなたが持っている唯一のオプションは、ジャスパーレポートを使用することです

レイアウトHtmlComponent<hc:html/>

例e

<componentElement> 
    <reportElement x="0" y="100" width="230" height="110" backcolor="#ADD8E6" uuid="332dd551-e8cd-4cb0-a11f-7325f481017b"/> 
    <hc:html xmlns:hc="http://jasperreports.sourceforge.net/htmlcomponent" xsi:schemaLocation="http://jasperreports.sourceforge.net/htmlcomponent http://jasperreports.sourceforge.net/xsd/htmlcomponent.xsd" scaleType="FillFrame" horizontalAlign="Left" verticalAlign="Top"> 
     <hc:htmlContentExpression><![CDATA["<table><tr><td>Hello</td></tr><tr><td>World</td></tr></table>]]></hc:htmlContentExpression> 
    </hc:html> 
</componentElement> 

このコンポーネントの主な問題は、自分のhtmlのイメージを作成し、問題のスケーリングテキストがあることです。

関連する問題