1
resposta

Relatorio parametros como aumentar a largura do campo

Alguem consegue me informar , como sei o tamanho dos campos, ou melhor como posso aumentar o aumentar a largura do campo de mensagem?, este é um ralatorio que fizeram usando Itext, não manjo deste paramentros, obrigado.

    <Field type="LINE" lineWidth="0.05" lineStyle="FULL"    x1="10.0" y1="10.0" x2="10.0" y2="65.0" />
    <Field type="LINE" lineWidth="0.05" lineStyle="FULL"    x1="80.0" y1="10.0" x2="80.0" y2="65.0" />
    <Field type="LINE" lineWidth="0.05" lineStyle="FULL"    x1="160.0" y1="25.0" x2="160.0" y2="65.0" />
    <Field type="LINE" lineWidth="0.05" lineStyle="FULL"    x1="240.0" y1="45.0" x2="240.0" y2="65.0" />
    <Field type="LINE" lineWidth="0.05" lineStyle="FULL"    x1="400.0" y1="25.0" x2="400.0" y2="45.0" />
    <Field type="LINE" lineWidth="0.05" lineStyle="FULL"    x1="480.0" y1="45.0" x2="480.0" y2="65.0" />
    <Field type="LINE" lineWidth="0.05" lineStyle="FULL"    x1="832.0" y1="10.0" x2="832.0" y2="65.0" />



    <Field type="TEXT" fontName="Helvetica"    fontSize="8.0" fontRotation="0.0" fontAlign="0" x1="15.0" y1="20.0"        name="num_sta" />
    <Field type="TEXT" fontName="Helvetica"    fontSize="8.0" fontRotation="0.0" fontAlign="0" x1="85.0" y1="20.0"        name="mensagem" />
    <Field type="TEXT" fontName="Helvetica"    fontSize="8.0" fontRotation="0.0" fontAlign="0" x1="15.0" y1="40.0"        name="num_mensagem." />
    <Field type="TEXT" fontName="Helvetica"    fontSize="8.0" fontRotation="0.0" fontAlign="0" x1="85.0" y1="40.0"        name="num_fone" />
    <Field type="TEXT" fontName="Helvetica"    fontSize="8.0" fontRotation="0.0" fontAlign="0" x1="165.0" y1="40.0"    name="data_envio" />
    <Field type="TEXT" fontName="Helvetica"    fontSize="8.0" fontRotation="0.0" fontAlign="0" x1="405.0" y1="40.0"    name="data_resposta" />
    <Field type="TEXT" fontName="Helvetica"    fontSize="8.0" fontRotation="0.0" fontAlign="0" x1="85.0" y1="60.0"        name="remetente" />
    <Field type="TEXT" fontName="Helvetica"    fontSize="8.0" fontRotation="0.0" fontAlign="0" x1="165.0" y1="60.0"    name="tipo" />
    <Field type="TEXT" fontName="Helvetica"    fontSize="8.0" fontRotation="0.0" fontAlign="0" x1="245.0" y1="60.0"    name="descricao" />
    <Field type="TEXT" fontName="Helvetica"    fontSize="8.0" fontRotation="0.0" fontAlign="0" x1="485.0" y1="60.0"    name="detalhe" />

</Band>
1 resposta

Fala Givanildo, tudo bem?

Você está usando o IText 7?

Veja se te ajuda: https://itextpdf.com/en/resources/faq/technical-support/itext-7/how-define-width-cell

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software