enter image description hereenter image description herefor the report, i want the cell to stretch as per the length of the data in the cell currently my report looks like this
the code:
<jr:column width="100" uuid="a1e76d15-849b-4f0c-a863-05a154d5291c">
<jr:detailCell style="Table_TD" height="15">
<textField isStretchWithOverflow="true">
<reportElement x="0" y="0" width="100" height="15" uuid="c86863d7-007b-4a35-b616-01c4aec548dd">
<property name="net.sf.jasperreports.export.xls.auto.fit.row" value="true"/>
<property name="net.sf.jasperreports.export.xls.auto.fit.column" value="true"/>
<property name="net.sf.jasperreports.export.xls.wrap.text" value="false"/>
<property name="net.sf.jasperreports.print.keep.full.text" value="true"/>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="10" isBold="false" pdfFontName="DejaVu Sans" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{uom} != null ? $F{uom} : "-"]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
as you can see the uom, the data inside the cell is croped and sticks close to the cell expected :
- cell to stretch as per the length of the data or
- want the data inside the cell to not get cropped or
- any better way to give proper alignment
Note : i tried width= "150" , still the same result