Java - Jasperreport

 
Vista:

Jasperreport

Publicado por Jose Patiño (3 intervenciones) el 05/03/2024 22:04:30
Una consulta a los amigos. Cree un clase donde guardo datos string y long estos datos los guardo en un list. A la hora de realizar mi report los fields los declaró como long pero no me justifica a la derecha por más que le doy la configuración exacta. Alguna sugerencia?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

Jasperreport

Publicado por JOSE PATIÑO (3 intervenciones) el 05/03/2024 22:33:54
este es la descripcion en DETALLE y en la cual no me justifica a la derecha los campos long
<detail>
<band height="18" splitType="Stretch">
<property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.FreeLayout"/>
<textField pattern="#,##0">
<reportElement x="196" y="0" width="120" height="18" uuid="4848e30c-cd34-4f78-9307-283a78bcc75f">
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<box rightPadding="2">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{debito}]]></textFieldExpression>
</textField>
<textField pattern="#,##0">
<reportElement x="318" y="0" width="120" height="18" uuid="acd74ad4-d8c2-48ad-9f6a-99a7d8feb961">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="46077f10-ba6d-49a0-b5f1-dd3a32b80efd"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<box rightPadding="2">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{credito}]]></textFieldExpression>
</textField>
<textField pattern="#,##0">
<reportElement x="562" y="0" width="120" height="18" uuid="7387f898-8cd4-4709-8bcb-3328cdc0dae4">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="4cb2f938-29d4-4f07-9734-e3bbf5a2be2d"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<box rightPadding="2">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{acreedor}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.###">
<reportElement positionType="Float" x="684" y="0" width="120" height="18" uuid="9559e90e-709f-4737-ad76-f1faeffefe3d">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="44e297ee-27c3-423c-b43d-c9021d83c3b9"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<box rightPadding="2">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{activo}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.###">
<reportElement x="806" y="0" width="120" height="18" uuid="613c9c84-28f8-48b3-8596-c198abf519d9">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="1f2e56e6-5456-4986-9226-f53efddaf204"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<box rightPadding="2">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{pasivo}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.###">
<reportElement x="928" y="0" width="120" height="18" uuid="0386325d-8e34-4e5e-be81-9f90f898869a">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="55a550c3-a324-4217-bea9-9498843b748e"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<box rightPadding="2">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{perdida}]]></textFieldExpression>
</textField>
<textField pattern="#,##0.###">
<reportElement x="1050" y="0" width="120" height="18" uuid="eb4c780f-8b69-4450-84b9-990cef3991f8">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="9f339c80-caf7-45be-a034-90862b230ccb"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<box topPadding="0" leftPadding="0" bottomPadding="0" rightPadding="2">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{ganancias}]]></textFieldExpression>
</textField>
<textField pattern="#,##0">
<reportElement x="440" y="0" width="120" height="18" uuid="6da50921-aa68-45a9-9bb5-1849c2e93409">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="d080f8c0-67aa-4060-a44c-cb844d54101d"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
<property name="com.jaspersoft.studio.unit.width" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
</reportElement>
<box rightPadding="2">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Right"/>
<textFieldExpression><![CDATA[$F{deudor}]]></textFieldExpression>
</textField>
<textField>
<reportElement x="0" y="0" width="195" height="18" uuid="9257bbd9-0b78-47f8-8659-6b85d4081f24">
<property name="com.jaspersoft.studio.spreadsheet.connectionID" value="ba3fe414-bb04-4670-899f-5e178bfb98fe"/>
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<property name="com.jaspersoft.studio.unit.x" value="px"/>
<property name="com.jaspersoft.studio.unit.y" value="px"/>
</reportElement>
<box leftPadding="2">
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Left"/>
<textFieldExpression><![CDATA[$F{cuenta}]]></textFieldExpression>
</textField>
</band>
</detail>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar