Jump to content

stenio.vilar

Members
  • Posts

    9
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by stenio.vilar

  1. And my full jxrml:

    <?xml version="1.0" encoding="UTF-8"?><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="CertificadoRegistroProdutoProdutosVeterinariosComposicao" pageWidth="535" pageHeight="802" columnWidth="535" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" isTitleNewPage="true" uuid="04f710a4-be9e-4128-8025-455b2232a69e">    <property name="ireport.zoom" value="1.0"/>    <property name="ireport.x" value="0"/>    <property name="ireport.y" value="0"/>    <parameter name="SUBREPORT_DIR" class="java.lang.String">        <defaultValueExpression><![CDATA["C:\mapa_sipe\workspace_producao\sipe_trunk_producao\sipe-ejb\ejbModule\br\gov\mapa\sipe\integracao\relatorios\produto\"]]></defaultValueExpression>    </parameter>    <field name="dsComposicaoProduto" class="java.lang.String"/>    <field name="dtConcessao" class="java.lang.String"/>    <field name="dtRenovacao" class="java.lang.String"/>    <field name="dtVencimentoRegistro" class="java.lang.String"/>    <field name="composicaoComprimido" class="java.lang.Boolean"/>    <field name="listaComprimidos" class="java.util.Collection"/>    <field name="listaIngredienteProduto" class="java.util.Collection"/>    <field name="nmMunicipioUFAssinatura" class="java.lang.String"/>    <field name="dtRegistroAnterior" class="java.lang.String"/>    <field name="dtDeferimento" class="java.lang.String"/>    <field name="dsUsuarioDeferimento" class="java.lang.String"/>    <title>        <band height="5"/>    </title>    <detail>        <band height="35" splitType="Stretch">            <staticText>                <reportElement uuid="87937c10-31d7-4ee1-8df6-3a03a4289180" x="0" y="0" width="221" height="16"/>                <textElement verticalAlignment="Middle" markup="none">                    <font size="11" isBold="true" isStrikeThrough="false" pdfFontName="Helvetica-Bold"/>                </textElement>                <text><![CDATA[FÓRMULA COMPLETA  DO PRODUTO]]></text>            </staticText>            <subreport isUsingCache="false" runToBottom="false">                <reportElement uuid="6c86f9a9-1250-4357-8d58-3c9c88b3133f" stretchType="RelativeToTallestObject" isPrintRepeatedValues="false" x="0" y="16" width="535" height="19" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true">                    <printWhenExpression><![CDATA[new Boolean($F{composicaoComprimido}.booleanValue())]]></printWhenExpression>                </reportElement>                <subreportParameter name="SUBREPORT_DIR">                    <subreportParameterExpression><![CDATA[$P{SUBREPORT_DIR}]]></subreportParameterExpression>                </subreportParameter>                <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{listaComprimidos})]]></dataSourceExpression>                <subreportExpression><![CDATA[this.getClass().getClassLoader().getResourceAsStream($P{SUBREPORT_DIR} + "/CertificadoRegistroProdutoProdutosVeterinariosComposicaoComprimidos.jasper")]]></subreportExpression>            </subreport>        </band>        <band height="43" splitType="Stretch">            <textField>                <reportElement uuid="2de034c4-f1d2-4b1e-8583-2a551c1665f6" positionType="Float" isPrintRepeatedValues="false" x="0" y="0" width="535" height="16" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true">                    <printWhenExpression><![CDATA[new java.lang.Boolean($F{dsComposicaoProduto} != null)]]></printWhenExpression>                </reportElement>                <textElement verticalAlignment="Top" markup="none">                    <font size="11"/>                </textElement>                <textFieldExpression><![CDATA["Cada "+$F{dsComposicaoProduto}+" do produto contém:"]]></textFieldExpression>            </textField>            <subreport isUsingCache="false" runToBottom="false">                <reportElement uuid="ca0f248c-107b-466b-98a2-3a4b78d4805a" positionType="Float" stretchType="RelativeToTallestObject" isPrintRepeatedValues="false" x="0" y="16" width="535" height="27" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true">                    <printWhenExpression><![CDATA[new java.lang.Boolean($F{dsComposicaoProduto} != null)]]></printWhenExpression>                </reportElement>                <subreportParameter name="dsComposicaoProduto">                    <subreportParameterExpression><![CDATA[$F{dsComposicaoProduto}]]></subreportParameterExpression>                </subreportParameter>                <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{listaIngredienteProduto})]]></dataSourceExpression>                <subreportExpression><![CDATA[this.getClass().getClassLoader().getResourceAsStream($P{SUBREPORT_DIR} + "/CertificadoRegistroProdutoProdutosVeterinariosComposicao.jasper")]]></subreportExpression>            </subreport>        </band>        <band height="130">            <textField isBlankWhenNull="true">                <reportElement uuid="854ebc23-ca5c-48a6-a682-01127ad82e26" positionType="Float" x="97" y="7" width="151" height="14" isRemoveLineWhenBlank="true"/>                <box leftPadding="2"/>                <textElement verticalAlignment="Middle">                    <font size="11"/>                </textElement>                <textFieldExpression><![CDATA[$F{dtConcessao}]]></textFieldExpression>            </textField>            <textField isBlankWhenNull="true">                <reportElement uuid="0d6b11e4-d6b9-4ed5-9975-7f47e4bddfee" positionType="Float" x="55" y="23" width="480" height="14" isRemoveLineWhenBlank="true"/>                <box leftPadding="2"/>                <textElement verticalAlignment="Middle">                    <font size="11"/>                </textElement>                <textFieldExpression><![CDATA[$F{dtRenovacao}]]></textFieldExpression>            </textField>            <staticText>                <reportElement uuid="ca9b0530-637d-4f0d-a64f-50af23e0eaea" positionType="Float" x="0" y="23" width="85" height="14" isRemoveLineWhenBlank="true">                    <printWhenExpression><![CDATA[boolean.valueOf($F{dtRenovacao} != null || !$F{dtRenovacao}.isEmpty())]]></printWhenExpression>                </reportElement>                <textElement verticalAlignment="Middle">                    <font size="11"/>                </textElement>                <text><![CDATA[Renovado:]]></text>            </staticText>            <staticText>                <reportElement uuid="052021f0-34da-4809-8e78-7a50b3a27034" positionType="Float" x="0" y="7" width="121" height="14"/>                <textElement verticalAlignment="Middle">                    <font size="11"/>                </textElement>                <text><![CDATA[Data de concessão:]]></text>            </staticText>            <textField isStretchWithOverflow="true" isBlankWhenNull="true">                <reportElement uuid="42bc40e6-87b9-40ab-bf33-4339dac42409" positionType="Float" stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" x="0" y="43" width="535" height="14" isPrintWhenDetailOverflows="true"/>                <textElement textAlignment="Center" verticalAlignment="Bottom">                    <font size="11"/>                </textElement>                <textFieldExpression><![CDATA["Esta licença é valida até: "+ $F{dtVencimentoRegistro}]]></textFieldExpression>            </textField>            <textField isBlankWhenNull="true">                <reportElement uuid="25992ad2-2ca0-483b-b24c-daef0ecad6b0" positionType="Float" x="458" y="7" width="77" height="14" isRemoveLineWhenBlank="true">                    <printWhenExpression><![CDATA[new Boolean($F{dtRegistroAnterior} != "")]]></printWhenExpression>                </reportElement>                <box leftPadding="2"/>                <textElement verticalAlignment="Middle">                    <font size="11"/>                </textElement>                <textFieldExpression><![CDATA[$F{dtRegistroAnterior}]]></textFieldExpression>            </textField>            <staticText>                <reportElement uuid="e0ff2299-210f-4b7f-9ea5-a3eb8a830eff" positionType="Float" x="363" y="7" width="140" height="14">                    <printWhenExpression><![CDATA[new Boolean($F{dtRegistroAnterior} != "")]]></printWhenExpression>                </reportElement>                <textElement verticalAlignment="Middle">                    <font size="11"/>                </textElement>                <text><![CDATA[Data do 1º registro:]]></text>            </staticText>            <textField isBlankWhenNull="true">                <reportElement uuid="05cb6077-8a6a-478f-aaa4-1a021a8ed7d3" isPrintRepeatedValues="false" x="0" y="70" width="535" height="50" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>                <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html">                    <font size="10"/>                </textElement>                <textFieldExpression><![CDATA["Documento assinado eletronicamente por  <b>" + $F{dsUsuarioDeferimento} +  "</b> ,  em " + $F{dtDeferimento} +  " , com fundamento no art. 6º, § , 1º, do <a href=http://www.planalto.gov.br/ccivil_03/_Ato2015-2018/2015/Decreto/D8539.htm'><u><span style='color:#0000EE'>Decreto nº 8.539, de 8 de outubro de 2015.</span></u></a&gt]]></textFieldExpression>            </textField>        </band>    </detail></jasperReport>[/code]

     

  2. This is my full textfield now:

     

    <textField isBlankWhenNull="true">    <reportElement uuid="05cb6077-8a6a-478f-aaa4-1a021a8ed7d3" isPrintRepeatedValues="false" x="0" y="70" width="535" height="50" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>    <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html">        <font size="10"/>    </textElement>    <textFieldExpression><![CDATA["Documento assinado eletronicamente por  <b>" + $F{dsUsuarioDeferimento} +  "</b> ,  em " + $F{dtDeferimento} +  " , com fundamento no art. 6º, § , 1º, do <a href=http://www.planalto.gov.br/ccivil_03/_Ato2015-2018/2015/Decreto/D8539.htm'><u><span style='color:#0000EE'>Decreto nº 8.539, de 8 de outubro de 2015.</span></u></a&gt]]></textFieldExpression> </textField>[/code]

     

  3. I have the following code:

    <textField isBlankWhenNull="true">    <reportElement uuid="05cb6077-8a6a-478f-aaa4-1a021a8ed7d3" isPrintRepeatedValues="false" x="0" y="70" width="535" height="50" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>    <textElement textAlignment="Justified" verticalAlignment="Middle" markup="html">        <font size="10"/>    </textElement>    <textFieldExpression><![CDATA["Documento assinado eletronicamente por  <style isBold=true' pdfFontName='Helvetica-Bold'>" + $F{dsUsuarioDeferimento} +  "</style> ,  em " + $F{dtDeferimento} +  " , com fundamento no art. 6º, § , 1º, do <a href='http://www.planalto.gov.br/ccivil_03/_Ato2015-2018/2015/Decreto/D8539.htm'><u><span style='color:#0000EE'>Decreto nº 8.539, de 8 de outubro de 2015.</span></u></a&gt]]>    </textFieldExpression></textField>[/code]

    I need to put $F{dsUsuarioDeferimento} in bold style. But nothing I've tried works. Any help?

  4. I have the following textField, but I want the hyperlink only in this part of text: "decreto nº 8.539, de 8 de outubro de 2015." How can I do it?

    The following code puts the hyperlink in the whole text.


      

      <textField isBlankWhenNull="true" hyperlinkType="Reference">      <reportElement uuid="f9422a97-9088-4dcf-bbc5-c9ff5449ff15" isPrintRepeatedValues="false" x="-1" y="149" width="535" height="38" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/>      <textElement textAlignment="Center" verticalAlignment="Middle">          <font size="8"/>      </textElement>      <textFieldExpression><![CDATA["Documento assinado eletronicamente por " + $F{dsUsuarioDeferimento} +  " ,  em " + $F{dtDeferimento} +  " , com fundamento no art. 6º, § , 1º, do decreto nº 8.539, de 8 de outubro de 2015."]]></textFieldExpression>      <anchorNameExpression><![CDATA["decreto nº 8.539, de 8 de outubro de 2015."]]></anchorNameExpression>      <hyperlinkReferenceExpression><![CDATA["google.com"]]></hyperlinkReferenceExpression>  </textField>[/code]

     

×
×
  • Create New...