Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

valterjrs

Filtro na hora da exportação

Recommended Posts

Bom dia pessoal,

 

Tenho a página abaixo que o usuário pode selecionar alguns campos para a exportação ou todos eles, e quando o usuário clica no botão gerar planilha ele salva a tabela no excel, a página em si ta pronta so que não sei como fazer esse filtro. To precisando da ajuda de vcs.

 

At.

Valter Júnior

 

exp_chamados.asp

 

<%session.timeout = 90 ' tempo em minutos%>
<%
If session("nivel_acesso") < 3 Then 'se não for gerente
  Response.Write "Você não tem autorização para ver esta página!"
  Response.End
End If
%>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
A:link {color: ##0066CC; text-decoration:none;}
A:visited {color: #0066CC; text-decoration:none;}
A:hover {color:#FF9900; text-decoration:none;}

.bordaGeral {
	border: 1px solid #666666;
}
.bordaTopo {
	border-top-width: 1px;
	border-right-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: none;
	border-left-style: solid;
	border-top-color: #666666;
	border-right-color: #666666;
	border-left-color: #666666;
}
.bordaSimplesTop {
	border-top-width: 1px;
	border-top-style: solid;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	border-top-color: #CCCCCC;
}
.titulo {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	line-height: normal;
	font-weight: 800;
	font-variant: normal;
	color: #0066CC;
}
.comentario {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 900;
	font-variant: normal;
	color: #FF9900;
	background-position: center center;
	padding: 2px;
}
.style1 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
body {
	margin-left: 0px;
	margin-top: 0px;
}
.style4 {	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #FF0000;
}
-->
</style>
<script language="JavaScript"><!-- 
var hellotext=" Copyright © 2008 - DIVIDATA Processamento de Dados Ltda - Todos os direitos reservados "
var thetext=""
var started=false 
var step=0
var times=1 
function welcometext()
{
times--
if (times==0)
{
if (started==false) 
{ 
started = true;
window.status = hellotext; 
setTimeout("anim()",1);
}
thetext = hellotext;
}
}
function showstatustext(txt) 
{
thetext = txt;
setTimeout("welcometext()",4000) 
times++ 
}
function anim() 
{
step++
if (step==12) {step=1}
if (step==1) {window.status='>>=========='+thetext+'==========<<'} 
if (step==2) {window.status='=>>========='+thetext+'=========<<='} 
if (step==3) {window.status='==>>========'+thetext+'========<<=='} 
if (step==4) {window.status='===>>======='+thetext+'=======<<==='} 
if (step==5) {window.status='====>>======'+thetext+'======<<===='} 
if (step==6) {window.status='=====>>====='+thetext+'=====<<====='} 
if (step==7) {window.status='======>>===='+thetext+'====<<======'} 
if (step==8) {window.status='=======>>==='+thetext+'===<<======='} 
if (step==9) {window.status='========>>=='+thetext+'==<<========'} 
if (step==10) {window.status='=========>>='+thetext+'=<<========='} 
if (step==11) {window.status='==========>>'+thetext+'<<=========='} 

setTimeout("anim()",100); 
} 
welcometext(); 
// --></script>
</head>
<script language="JavaScript" type="text/JavaScript">
<!--


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
	document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function abrir(endereco,janela)	
{  
	window.open(endereco+'?cgc_unidade=<%=Session("cgc_unidade")%>',janela,'top=0,left=0,toolbar=no,status=no,scrollbars=yes,location=no,resizable=yes,m
enubar=no,directories=no,width=790,height=615')
}

function abrirSuporte(endereco,janela)	
{  
	window.open(endereco,janela,'top=0,left=0,toolbar=no,status=no,scrollbars=no,location=no,resizable=no,men
ubar=no,directories=no,width=790,height=270')
}
//-->
</script>

<body bgcolor="#FFFFFF" rightmargin="0">
<table width="906" height="108" border="0" align="center" class="bordaGeral">
  <tr>
	<td background="Img/banner.jpg"><table width="200" border="0">
	  <tr>
		<td><img src="Img/logo_topo.gif" alt="." width="238" height="34"><br>
			  <img src="Img/logo_down.gif" alt="." width="238" height="34"></td>
	  </tr>
	</table>
		<br></td>
  </tr>
</table>
<table width="909" border="0" align="center">
  <tr>
	<td width="269" class="style1"><div align="left" class="style1">
	  <script language=JavaScript class="style98">
		hoje = new Date()
		dia = hoje.getDate()
		dias = hoje.getDay()
		mes = hoje.getMonth()
		ano = hoje.getYear()
		if (dia < 10)
				dia = "0" + dia
		if (ano < 2000)
				ano = "19" + ano
		function CriaArray (n) {
		this.length = n }
		NomeDia = new CriaArray(7)
		NomeDia[0] = "Domingo"
		NomeDia[1] = "Segunda-feira"
		NomeDia[2] = "Terça-feira"
		NomeDia[3] = "Quarta-feira"
		NomeDia[4] = "Quinta-feira"
		NomeDia[5] = "Sexta-feira"
		NomeDia[6] = "Sábado"
		//
		NomeMes = new CriaArray(12)
		NomeMes[0] = "Janeiro"
		NomeMes[1] = "Fevereiro"
		NomeMes[2] = "Março"
		NomeMes[3] = "Abril"
		NomeMes[4] = "Maio"
		NomeMes[5] = "Junho"
		NomeMes[6] = "Julho"
		NomeMes[7] = "Agosto"
		NomeMes[8] = "Setembro"
		NomeMes[9] = "Outubro"
		NomeMes[10] = "Novembro"
		NomeMes[11] = "Dezembro"
						
	
	document.write ("Divinópolis/MG  - " + dia + " de " + NomeMes[mes] + " de " + ano + ".</font>")

						  </script>
	</div></td>
	<td width="49" class="style1"><font color="#000000">Usuário:</font></td>
	<td width="197" class="style1"><span class="style4"><%=session("login")%></span></td>
	<td width="99" class="style1"><span class="style4"> </span>Nível de Acesso:</td>
	<td width="194" class="style1"><span class="style4"><%=session("nivel_acesso")%></span></td>
	<td width="42" class="style1"><font color="#000000">Versão:</font></td>
	<td width="29" class="style4"><div align="left">1.3.1</div></td>
  </tr>
</table>
<table width="909" border="0" align="center">
  <tr>
	<td><br>
		<img src="Img/icone_exportacao.jpg" alt="Cadastramento de Senhas" width="48" height="48" align="absmiddle"> <span class="style4">Exportação de  Chamados</span></td>
  </tr>
</table>
<div align="center">
  <form action="exp_fin_chamados.asp" method="post" name="form1" target="_blank">
	<table border="0" width="909">
	  <tr>
		<td><table border="0" width="100%" height="5">
			<tr>
			  <td width="100%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" colspan="5" valign="top" height="5"><hr>
			  </td>
			</tr>
		  </table>
			<table border="0" width="100%" height="91">
			  <tr>
				<td colspan="5" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="11"><strong>Selecione
				  os campos que serão inseridos na exportação:</strong></td>
			  </tr>
			  <tr>
				<td colspan="5" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="11"><hr>
				</td>
			  </tr>
			  <tr>
				<td width="16%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C1" value="Cgc,">
				  Nº Protocolo </td>
				<td width="22%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C2" value="Noporta,">
				  REOP</td>
				<td width="20%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C17" value="StatusAtual,">
				  Endereço</td>
				<td width="20%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input type="checkbox" name="C3" value="Hss,">
				  Bairro</td>
				<td width="22%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C4" value="Ipserial,">
				  Municipio</td>
			  </tr>
			  <tr>
				<td width="16%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C5" value="NomeUNidade,">
				  UF</td>
				<td width="22%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C6" value="Identificacao,">
				  Usuário ECT </td>
				<td width="20%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C18" value="UltimaAlteracao,">
				  Matricula Usuário </td>
				<td width="20%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C7" value="Rot,">
				  Agência</td>
				<td width="22%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C8" value="Iprede,">
				  Fone</td>
			  </tr>
			  <tr>
				<td width="16%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C9" value="Velocidade,">
				  Número Helpdesk </td>
				<td width="22%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C10" value="Degrau,">
				  Número ERP </td>
				<td width="20%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C19" value="Usuario,">
				  PIB</td>
				<td width="20%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C11" value="SerProta,">
				  Número de Série </td>
				<td width="22%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C12" value="IpLoop,">
				  Equipamento</td>
			  </tr>
			  <tr>
				<td width="16%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C13" value="NrSerie,">
				  Marca</td>
				<td width="22%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C14" value="Dial,">
				  Modelo</td>
				<td width="20%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C16" value="UltimaVerificacao,">
				  Data/Hora da Abertura </td>
				<td width="20%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input  type="checkbox" name="C15" value="TempoResposta,">
				  Descrição do Chamado </td>
				<td width="22%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input name="C20"  type="checkbox" id="C20" value="IpLoop,">
				  Situação do Chamado</td>
			  </tr>
			  <tr>
				<td style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input name="C21"  type="checkbox" id="C21" value="NrSerie,">
				  Nome do Técnico </td>
				<td style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input name="C22"  type="checkbox" id="C22" value="Dial,">
				  Data/Hora do Atendimento </td>
				<td style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input name="C23"  type="checkbox" id="C23" value="UltimaVerificacao,">
				  Data/Hora da Conclusão </td>
				<td style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input name="C24"  type="checkbox" id="C24" value="TempoResposta,">
				  Peça Aplicada </td>
				<td style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input name="C25"  type="checkbox" id="C25" value="IpLoop,">
				  Qtde de Peças </td>
			  </tr>
			  <tr>
				<td style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input name="C26"  type="checkbox" id="C26" value="NrSerie,">
				  Cliente RAT </td>
				<td style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"><input name="C27"  type="checkbox" id="C27" value="Dial,">
				  Descrição Atendimento </td>
				<td style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"> </td>
				<td style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"> </td>
				<td style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"> </td>
			  </tr>
			  <tr>
				<td width="16%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"></td>
				<td width="22%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"></td>
				<td width="20%" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4"></td>
				<td style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="4" colspan="2"><input  type="Checkbox" value="V1" name="R2">
				  Selecionar Todos os Campos</td>
			  </tr>
			  <tr>
				<td style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" colspan="5" height="19"><hr>
				</td>
			  </tr>
			</table>
		  <table>
			  <tr>
				<td width="223" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="12"></td>
				<td width="295" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="12"></td>
				<td width="295" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="12"></td>
				<td width="325" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="12"></td>
				<td width="325" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="12"></td>
			  </tr>
			  <tr>
				<td width="295" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="38" colspan="2" align="center"><input type="reset" value="Limpar Campos" name="B2" STYLE="font-size: 8 pt;background-color=#e5e5e5;color: #0039ba;FONT-WEIGHT: bold" ></td>
				<td width="295" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="38" align="center"><input type="submit" value="Gerar Planilha" name="B3" STYLE="font-size: 8 pt;background-color=#e5e5e5;color: #0039ba;FONT-WEIGHT: bold"></td>
				<td width="325" style="font-family: Verdana; font-size: 7pt; color: rgb(0,0,128)" height="38" colspan="2" align="center"><a href="menu.asp"><img src="Img/Voltar.gif" alt="Voltar" width="52" height="21" border="0"></a></td>
			  </tr>
		  </table></td>
	  </tr>
	</table>
	</form>
</div>
</body>
</html>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Aparentemente, essa página que você postou é apenas para exibição não? Como está a parte de exportação?

Compartilhar este post


Link para o post
Compartilhar em outros sites

Ta ai a página na qual quando clico no botão gerar planilha da página anterior ele abre essa ai abaixo.

 

At.

Valter Júnior

exp_fin_chamados.asp

<%Response.ContentType = "application/vnd.ms-excel" 
Response.AddHeader "Content-Disposition", "attachment;filename=Planilha.xls"%>
<style type="text/css">
<!--
.style6 {color: #000000; font-weight: bold; }
.style7 {color: #000000}
.titulo {	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	line-height: normal;
	font-weight: 800;
	font-variant: normal;
	color: #0066CC;
}
.style1 {	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
-->
</style>
<p>
  <%
'***Declarando Conexões com Banco de Dados***
Set Conn = Server.CreateObject("AdoDb.Connection")
Conn.provider="Microsoft.Jet.OLEDB.4.0"
Conn.connectionstring=Server.Mappath("Dados/os.mdb")
Conn.open

'***Pesquisando todos os registros gravados na tabela chamado***
SQL = "SELECT * FROM os ORDER BY Numero ASC"
Set RS = Conn.Execute(SQL)
If RS.EOF then
%>
</p>
<table width="909" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr>
	<td width="216" align="center" height="24"><div align="center"><font size="2" face="Tahoma, Comic Sans MS" class="titulo">Não 
	  existem dados cadastrados! </font></div></td>
  </tr>
</table>
<div align="center"></div>
<div align="left">
<%
Else
%>
  <br>
  <span class="style1"></span></div>
<table width="1871" border="0" align="center">
  <tr bgcolor="#999999"> 
	<td width="3%" height="23"> <div align="center" class="style6 style7"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS"><strong>Número 
		OS</strong></font></div></td>
	<td width="2%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">REOP</font></div></td>
	<td width="3%" height="23"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">Endereço</font></div></td>
	<td width="2%" height="23"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">Bairro</font></div></td>
	<td width="3%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">Municipio 
		</font></div></td>
	<td width="1%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">UF</font></div></td>
	<td width="4%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">UsuarioECT</font></div></td>
	<td width="6%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">MatriculaUsuario</font></div></td>
	<td width="3%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">Agencia 
		</font></div></td>
	<td width="2%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">Fone 
		</font></div></td>
	<td width="7%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">NumeroHelpdesk 
		</font></div></td>
	<td width="4%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">NumeroERP 
		</font></div></td>
	<td width="1%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">Pib 
		</font></div></td>
	<td width="5%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">NumeroSerie 
		</font></div></td>
	<td width="5%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">Equipamento 
		</font></div></td>
	<td width="2%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">Marca 
		</font></div></td>
	<td width="3%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">Modelo 
		</font></div></td>
	<td width="8%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">DataeHoraAbertura 
		</font></div></td>
	<td width="4%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">Descricao 
		</font></div></td>
	<td width="8%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">SituacaoDoChamado 
		</font></div></td>
	<td width="8%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">NomeTecnico 
		</font></div></td>
	<td width="8%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">DataeHoraAtendimento 
		</font></div></td>
	<td width="8%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">DataeHoraConclusao 
		</font></div></td>
	<td width="4%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">PecaAplicada 
		</font></div></td>
	<td width="4%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">QtdePeca 
		</font></div></td>
	<td width="2%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">ClienteRAT 
		</font></div></td>
	<td width="2%"> <div align="center" class="style6"><font color="#FFFFFF" size="1" face="Tahoma, Comic Sans MS">DescricaoAtendimento 
		</font></div></td>
  </tr>
  <!--	</table>-->
  <%
	Do Until RS.EOF
		'para mudar de cor a cada nova célula
		If locCor = "#FFFFCC" then
			locCor = "#FFFFFF"
		else
			locCor = "#FFFFCC"
		end if
%>
  <tr bgcolor=<%=locCor %>> 
	<td width="3%"><div align="center"> <font face="Tahoma, Comic Sans MS" color="#000000" size="1"> 
		<%= RS("numero")%></font></div></td>
	<td width="2%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("REOP")%></font></div></td>
	<td width="3%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("endereco")%></font></div></td>
	<td width="2%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("Bairro")%></font></div></td>
	<td width="3%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("Municipio")%></font></div></td>
	<td width="1%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("UF")%></font></div></td>
	<td width="4%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("UsuarioECT")%></font></div></td>
	<td width="6%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("MatriculaUsuario")%></font></div></td>
	<td width="3%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("Agencia")%></font></div></td>
	<td width="2%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("Fone")%></font></div></td>
	<td width="7%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("NumeroHelpdesk")%></font></div></td>
	<td width="4%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("NumeroERP")%></font></div></td>
	<td width="1%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("Pib")%></font></div></td>
	<td width="5%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("NumeroSerie")%></font></div></td>
	<td width="5%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("Equipamento")%></font></div></td>
	<td width="2%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("Marca")%></font></div></td>
	<td width="3%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("Modelo")%></font></div></td>
	<td width="8%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("DataeHoraAbertura")%></font></div></td>
	<td width="4%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("Descricao")%></font></div></td>
	<td width="8%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("SituacaoDoChamado")%></font></div></td>
	<td width="8%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("NomeTecnico")%></font></div></td>
	<td width="8%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("DataeHoraAtendimento")%></font></div></td>
	<td width="8%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("DataeHoraConclusao")%></font></div></td>
	<td width="0%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("PecaAplicada")%></font></div></td>
	<td width="0%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("QtdePeca")%></font></div></td>
	<td width="0%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("ClienteRAT")%></font></div></td>
	<td width="0%"><div align="center"><font face="Tahoma, Comic Sans MS" color="#000000" size="1"><%= RS("DescricaoAtendimento")%></font></div></td>
  </tr>
  <%
		RS.MoveNext
Loop
end If
RS.Close	
Conn.Close
%>
</table>
<br>

Compartilhar este post


Link para o post
Compartilhar em outros sites

Você terá que alterar sua SQL de Select para pegar apenas os campos selecionados, no lugar do "*" você irá colocar as variáveis que recebem o chekbox que "habilita" o campo. Eu faria a montagem da tabela de forma "automática" varrendo apenas os campos selecionados no BD.

 

Tente fazer seguindo essa idéia, caso surjam duvidas vá pstando que iremos ajudando.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.