Layout da Template de Excel
Utilize os seguintes atributos para fazer a ligação de uma fonte de dados com um template:
Exemplo de um layout XML para o template de excel:
<dataset>
<sheet name="Planilha1">
<dynamic>
<table resultsetname="Vendas">
<columns skiprows="45,74,88,93,94">
<column name="INICIAL" startcell="C6"></column>
<column name="ENTREG" startcell="D6"></column>
<column name="SALDO" startcell="F6"></column>
<column name="PERC_ESP" startcell="J6"></column>
<column name="PRECO_ANTERIOR" startcell="L6"></column>
<column name="PRECO_SEMANA" startcell="M6"></column>
</columns>
</table>
<table resultsetname="ResultSet2">
<columns skiprows="28,30,31,32,34,35,36,38">
<column name="valor" startcell="Q21"></column>
</columns>
</table>
</dynamic>
<static>
<table>
<cell name="Q52">7,20</cell>
<cell name="U12">0,45</cell>
<cell name="W67">0</cell>
<cell name="Y67">0,00</cell>
</table>
</static>
</sheet>
<sheet name="ControlSheet">
<static>
<table>
<cell name="I7">0</cell>
<cell name="J4">22</cell>
<cell name="K4">04</cell>
<cell name="L4">2014</cell>
</table>
</static>
</sheet>
</dataset>
|