Ir para conteúdo
Fórum Script Brasil
  • 0

Manipular tabelas do excel no asp


Sara Zilanne

Pergunta

4 respostass a esta questão

Posts Recomendados

  • 0

<%if not rscResumo.eof then%>

<div style=" position:absolute; left:0px; top:80px;">

<table border="1" >

<%For Each Item in rscResumo.Fields

countResumo = countResumo + 1

Next

%>

<tr>

<td nowrap colspan="2" class="subTituloTabela">RESUMO</td>

</tr>

<%rscResumo.movefirst

do until rscResumo.eof

For i = 0 to countResumo - 1%>

<tr>

<td nowrap class="subTituloTabelaLeft" style="width=95px";><%=rscResumo.fields(i).Name%></td>

<td nowrap <%if (i = countResumo - 1) Then%>class="linhaTabelaRightBold"<%else%>class="linhaTabelaRight"<%end if%> style="width=105px";><%=FormatCurrency(rscResumo.fields(i).Value)%></td>

</tr>

<%Next%>

<%rscResumo.movenext%>

<%loop%>

<%rscResumo.movefirst%>

</table>

</div>

<%end if%>

<br />

<br />

<br/>

<br/>

<table style = "position:relative; left:400px; top:150px;" >

<%if not rscDebito.eof then%>

<div style = "position:absolute; left:400px; top:150px;">

<span>Relatório Débito <%=MonthName(mes)%> de <%=ano%></span>

<table border="1" style="width:350px; position: absolute; left: 40px; top:165" >

<tr >

<!--td width="25%" class='tituloTabela'>Celula</td>

<td width="25%" class='tituloTabela'>Data</td>

<td width="25%" class='tituloTabela'>Data Lancamento</td-->

<td width="25%" class='tituloTabela'>Descrição</td>

<td width="25%" class='tituloTabela'>Valor</td>

</tr>

<%rscDebito.movefirst%>

<%do while not rscDebito.eof %>

<tr>

<!--td class="linhaTabela"><%'=rscDebito("noSetor")%></td>

<td class="linhaTabela"><%'=rscDebito("Data")%></td>

<td class="linhaTabela"><%'=rscDebito("DataLancamento")%></td-->

<td class="linhaTabela"><%=rscDebito("Descricao")%></td>

<td class="linhaTabela"><%=FormatCurrency(rscDebito("Valor"),2)%></td>

</tr>

<%rscDebito.movenext%>

<%loop%>

<tr>

<td class= 'linhaTabela'>Total</td>

<td class="linhaTabela"><%=FormatCurrency(rscDebitoTotal("Total"),2)%></td>

</tr>

</table>

</div>

</table>

<%end if%>

<%if not rscCredito.eof then%>

<pre>

</pre>

<div "position:absolute; left:400px; top:300px"

<span>Relatório Crédito <%=MonthName(mes)%> de <%=ano%></span>

<table border="1" style="width:350px";>

<tr >

<!--td width="25%" class='tituloTabela'>Celula</td>

<td width="25%" class='tituloTabela'>Data</td>

<td width="25%" class='tituloTabela'>Data Lancamento</td-->

<td width="25%" class='tituloTabela'>Descrição</td>

<td width="25%" class='tituloTabela'>Valor</td>

</tr>

<%rscCredito.movefirst%>

<%do while not rscCredito.eof %>

<tr>

<!--td class="linhaTabela"><%'=rscDebito("noSetor")%></td>

<td class="linhaTabela"><%'=rscDebito("Data")%></td>

<td class="linhaTabela"><%'=rscDebito("DataLancamento")%></td-->

<td class="linhaTabela"><%=rscCredito("Descricao")%></td>

<td class="linhaTabela"><%=FormatCurrency(rscCredito("Valor"),2)%></td>

</tr>

<%rscCredito.movenext%>

<%loop%>

<tr>

<td class= 'linhaTabela'>Total</td>

<td class="linhaTabela"><%=FormatCurrency(rscCreditoTotal("Total"),2)%></td>

</tr>

</table>

</div>

<%end if%>

<%else%>

<h3 class="mensagem">Não existem dados para o período informado</h3>

<%end if %>

<%end if%>

</div>

As tabelas são essas acima, já alterei as posicões mas não modifica na planilha excel.

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      651,9k
×
×
  • Criar Novo...