<report libraries="li0500" name="li0500a" lpi="6">
 <description>registro dichiarazioni d'intento</description>
 <font face="Courier New" size="10" />
 <section type="Head">
  <field type="Stringa" width="50" pattern="1">
   <font face="Courier New" bold="1" size="10" />
   <prescript description="H0.0 PRESCRIPT">"!RAGSOC" 
GET_FIRM_DATA</prescript>
  </field>
  <field x="121" type="Testo" width="4" pattern="1" text="Pag." />
  <field x="125" type="Numero" align="right" width="5" pattern="1">
   <source>#PAGE</source>
   <prescript description="H0.0 PRESCRIPT">#REPORT.PAGE</prescript>
  </field>
  <field x="20" y="1" type="Testo" valign="center" align="center" width="56" height="2" pattern="1" text="Registro Dichiarazioni d'intento">
   <font face="Courier New" bold="1" size="14" />
  </field>
  <field x="74" y="1" type="Numero" valign="center" align="right" width="8" height="2" pattern="1">
   <font face="Courier New" bold="1" size="14" />
   <source>#ANNO</source>
  </field>
  <field border="1" y="4" type="Linea" width="132" height="0" pattern="1" />
  <field border="2" y="4" type="Linea" height="3" pattern="1" />
  <field x="1" y="4" type="Testo" valign="center" align="center" width="18" height="2" pattern="1" text="Emissione dichiarazione">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field border="1" x="20" y="4" type="Linea" height="3" pattern="1" />
  <field x="21" y="4" type="Testo" valign="center" align="center" width="18" height="2" pattern="1" text="Ricevimento dichiarazione">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field border="1" x="40" y="4" type="Linea" height="3" pattern="1" />
  <field border="1" x="97" y="4" type="Linea" height="3" pattern="1" />
  <field border="1" x="111" y="4" type="Linea" height="3" pattern="1" />
  <field border="1" x="117.5" y="4" type="Linea" height="3" pattern="1" />
  <field border="1" x="132" y="4" type="Linea" height="3" pattern="1" />
  <field x="112" y="4.5" type="Testo" valign="center" align="center" width="4" height="2" pattern="1" text="Uff. IVA">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="112" y="4.5" type="Testo" valign="center" align="center" width="4" height="2" pattern="1" text="Uff. IVA">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="40" y="5" type="Testo" valign="center" align="center" width="57" pattern="1" text="Dichiarante o fornitore &#2F; prestatore">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="98" y="5" type="Testo" valign="center" align="center" width="12" pattern="1" text="Partita IVA">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="123" y="5" type="Testo" valign="center" align="center" width="6" pattern="1" text="Note">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field y="6" type="Testo" valign="center" align="center" width="10" pattern="1" text="Data">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="10" y="6" type="Testo" valign="center" align="center" width="10" pattern="1" text="Protocollo">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="20" y="6" type="Testo" valign="center" align="center" width="10" pattern="1" text="Data">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field x="30" y="6" type="Testo" valign="center" align="center" width="10" pattern="1" text="Protocollo">
   <font face="Courier New" bold="1" size="10" />
  </field>
  <field border="1" y="7" type="Linea" width="132" height="0" pattern="1" />
 </section>
 <section type="Head" level="1" />
 <section type="Body" />
 <section type="Body" level="1">
  <field x="1" type="Data" width="10" pattern="1">
   <source>VSDATA</source>
  </field>
  <field x="12" type="Stringa" width="7" pattern="1">
   <source>VSPROT</source>
  </field>
  <field x="21" type="Data" width="10" pattern="1">
   <source>DATAREG</source>
  </field>
  <field x="32" type="Numero" align="right" width="6" pattern="1">
   <source>NUMPROT</source>
  </field>
  <field x="40" type="Numero" align="right" width="6" pattern="1">
   <source>CODCLI</source>
  </field>
  <field x="47" type="Stringa" width="50" pattern="1">
   <source>CLIFO.RAGSOC</source>
  </field>
  <field x="98" type="Stringa" width="12" pattern="1">
   <source>CLIFO.PAIV</source>
  </field>
  <field x="112.5" type="Numero" align="right" width="3" pattern="1">
   <source>154.UFFIVA</source>
  </field>
  <field x="118" type="Stringa" dynamic_height="1" width="15" height="18.5" pattern="1">
   <source>154.NOTE</source>
  </field>
 </section>
 <section type="Foot" />
 <section type="Foot" level="1" />
 <sql>USE 154
SELECT (NUM(ANSI(DATAREG))&#3E;=ANSI(#DADATA))&#26;&#26;(NUM(ANSI(DATAREG))&#3C;=ANSI(#ADATA))
JOIN CLIFO INTO TIPOCF=='C' CODCF==CODCLI
FROM ANNO=#ANNO
TO ANNO=#ANNO</sql>
</report>