2011-11-03 3 views
1

저는 최근에 DynamicJasper에서 놀았으며 꽤 인상적이었습니다. 내가 가지고있는 유일한 문제는 내가 만든 보고서 중 일부가 데이터 필드의 왼쪽에 레이블 (기술적으로 열 머리글)이있는 인쇄 된 양식과 더 비슷하다는 것입니다. iReport에서 보고서를 그릴 때 이것은 문제가되지 않습니다. 필드 옆에있는 세부 구역에 배치하면됩니다.DynamicJasper는 세부 정보 열 제목을 열 수 있습니까?

이 보일 것이다

Sample Design

jrxml은 다음과 같습니다

<detail> 
     <band height="125" splitType="Stretch"> 
      <textField> 
       <reportElement x="56" y="0" width="76" height="20"/> 
       <textElement/> 
       <textFieldExpression><![CDATA[$F{Column 1}]]></textFieldExpression> 
      </textField> 
      <staticText> 
       <reportElement x="0" y="0" width="56" height="20"/> 
       <textElement/> 
       <text><![CDATA[Column 1:]]></text> 
      </staticText> 
      <textField> 
       <reportElement x="189" y="0" width="71" height="20"/> 
       <textElement/> 
       <textFieldExpression><![CDATA[$F{Column 2}]]></textFieldExpression> 
      </textField> 
      <staticText> 
       <reportElement x="132" y="0" width="57" height="20"/> 
       <textElement/> 
       <text><![CDATA[Column 2:]]></text> 
      </staticText> 
      <textField> 
       <reportElement x="318" y="0" width="73" height="20"/> 
       <textElement/> 
       <textFieldExpression><![CDATA[$F{Column 3}]]></textFieldExpression> 
      </textField> 
      <staticText> 
       <reportElement x="260" y="0" width="58" height="20"/> 
       <textElement/> 
       <text><![CDATA[Column 3: ]]></text> 
      </staticText> 
      <textField> 
       <reportElement x="451" y="0" width="100" height="20"/> 
       <textElement/> 
       <textFieldExpression><![CDATA[$F{Column 4}]]></textFieldExpression> 
      </textField> 
      <staticText> 
       <reportElement x="391" y="0" width="60" height="20"/> 
       <textElement/> 
       <text><![CDATA[Column 4]]></text> 
      </staticText> 
     </band> 
    </detail> 

어떤 생각이 얼마나 단지 동적 재스퍼와 함께이 해내?

답변

2

현재 DynamicJasper에서는 실행할 수 없습니다. 새로운 LayoutManager 구현이 필요합니다.

Dj는 열 기반 보고서 만 다시 작성하는 것을 목표로합니다.

+0

그것이 내가 생각한 것입니다. 그러나 결정적인 것을 찾을 수 없었습니다. –