Ir para conteúdo

POWERED BY:

Arquivado

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

marciolvs

ASP para HTML ou JPG

Recommended Posts

Olá pessoal, utilizei um código para converter e salvei a página em PDF.

Porém a mesma ficou com um pesso alto para quem irá emitir 500 mensal.

 

Código:

<!--'gero o PDF-->
<!-- #include file="config.asp"-->
<!-- #include file="conexao.asp"-->
<!-- Início do script ASP --->
<%
'Declara as variáveis a serem utilizadas no script
Dim Pdf, Doc, Filename, conexaodb

'Instancia o objeto na memória
Set Pdf = Server.CreateObject("Persits.Pdf")
Set Doc = Pdf.CreateDocument

	SQL2 = "SELECT MAX(id) as id FROM Boletos"
	CAlL AbreConexao
	Set RsMax = conexaodb.execute(SQL2)
	id = RsMax("id")

Doc.ImportFromUrl "http://www.meusite.com/sistema_financeiro/CobrancaEnviaBoletoGeraBoleto2.asp?id="&id

'boleto = x104&".pdf"
boleto = request("boleto")&".pdf"

	SQL = "UPDATE Boletos SET boleto='"&boleto&"' WHERE id ="&RsMax("id")
	set rs = conexaodb.execute(sql)

Filename = Doc.Save( Server.MapPath(boleto), False ) 
 
response.write "<span class='txtgeral'><center><b>Arquivo gerado com sucesso!</b>"
response.write "<br>Clique <a href=" & Filename & " target='_blank' class='linkgeral'>aqui</a> para visualizar o arquivo.</center></span>"
 
SET Pdf = Nothing
SET Doc = Nothing

%>

Alguém sabe um código que poderei converter a página e salvar em JPG ou HTML ? assim ficará mais leve.

 

 

Agradeço.

Compartilhar este post


Link para o post
Compartilhar em outros sites

faz ela em ASP normal...

Compartilhar este post


Link para o post
Compartilhar em outros sites

faz ela em ASP normal...

 

Sim, mas esque arquivo irá um link para o cliente e será necessário que ele gere um arquivo e deixe salvo no server tipo o PDF, mas em um arquivo mais leve.

Compartilhar este post


Link para o post
Compartilhar em outros sites

para imagem use o ASPJpeg

Compartilhar este post


Link para o post
Compartilhar em outros sites

para imagem use o ASPJpeg

 

Pelo que entendi dele, ele não converte uma página, ele apenas converte extensões ou dimensão de imagem

Compartilhar este post


Link para o post
Compartilhar em outros sites

você precisa para gerar boletos ???, pois existem outros exemplos no fórum , pode te ajudar

Compartilhar este post


Link para o post
Compartilhar em outros sites

você precisa para gerar boletos ???, pois existem outros exemplos no fórum , pode te ajudar

 

Exatamente xanburzum.

 

o boleto já está gerado e dele é gerado um pdf, porem o pdf está ficando com 100kb,

Preciso gerar algo mais leve ex: html ou um jpg...

Para uma empresa que usa 500 á 1000 boletos mensal 100 seria um valor alto em MB.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Se está gerando somente o Boleto é só usar FSO e gerar um arquivo HTML com os dados que seriam exibidos.

Compartilhar este post


Link para o post
Compartilhar em outros sites

Se está gerando somente o Boleto é só usar FSO e gerar um arquivo HTML com os dados que seriam exibidos.

 

 

Aqui o boleto é gerado conforme informações o bd e recuperção de informações.

 

<!--26/04/2010 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%session.lcid = 1046%>
<% response.buffer=true %>
<!-- #include file="conexao.asp" -->
<%
'codcli = request("CodCli")
'response.Write(codcli)
'response.end()
%>
<%dim conexaodb%>
<%
SQL1 = "SELECT MAX(id) as id FROM Boletos"
CAlL AbreConexao
Set RsMaxBol = conexaodb.execute(SQL1)

bol = RsMaxBol("id")

x101 = Request.form("ValorDocumento")'Request.QueryString("valordocumento")

IF bol = "" Then
	x81 = 1
ELSE 
	x81 = bol+1 
END IF

'x81 = bol+1'Request.form("nossonumero")' NOSSO NUMERO, NUMERO DO BOLETO "1234567", muda por boleto
'response.Write(x81)
'response.End()
x33 = Request.form("vencimento") '"15/04/2010" '
x109 = Request.form("sacador")'"Fulano de Tal"
x70 = Request.form("dadosEndereco")'"Rua: Que sobe e desce" '
x79 = Request.form("dadosBairro")'"Vila" 
x74 = Request.form("dadosCep")' "00000-000" 
x67 = Request.form("dadosCidade")'"Cidade"
x28 = Request.form("dadosUF")'"SP" '

x89 = REQUEST("NumeroContrato")'"222222"''x81 ' N° DOCUMENTO, N° DO CLIENTE, muda por cliente

SQL = "SELECT * FROM CONFIGURACAO"
Call AbreConexao
Set RsConfig = Conexaodb.execute(SQL)

x136= RsConfig("cedente")'"CONSULTTA COM WEBSITES E SISTEMAS L ME" 'bol_cedente
x49 = RsConfig("CPFcnpj")'"00.533.574/0001-25" ' CNPJ
x10 = RsConfig("carteira")'"42" 'Código da Carteira 02 posições 'bol_carteira
x154 = RsConfig("convenio")'"3729085.0815" 'No Bradesco não existe o número do convênio 'bol_convenio
x83 = RsConfig("agencia")'"0815" 'Num da agencia, sem digito 04 posições 'bol_agencia
x121 = RsConfig("digitoagencia")'"" 'Digito verificador da agencia 01 posição 'bol_dagencia
x64 = RsConfig("conta")'"5.734978" 'ContaCedente do Cliente, sem digito (Somente Números) 07 posições 'bol_conta

x72 = RsConfig("digitoConta")'"8" 'Digito verificador da conta 01 posição 'bol_dconta

'x12= obs_linha1
'x20= obs_linha2
'x48= obs_linha3
'x21= obs_linha4
'x1= obs_linha5
x80= RsConfig("linha1")'- Sr. Caixa, cobrar multa de 2% após o vencimento" 'instr_linha1
x171= RsConfig("linha2")'"- Receber até 10 dias após o vencimento" 'instr_linha2
x130= RsConfig("linha3")'"- Em caso de dúvidas entre em contato conosco: consultta@consultta.com" 'instr_linha3
x97= RsConfig("linha4")'"Emitido pelo sistema Financeiro - www.consultta.com" 'instr_linha4
x73= "" 'instr_linha5
x163="" ' Uso do Banco
x98="" ' Quantidade
x34= RsConfig("especie")'"R$" ' Especie
x174= RsConfig("aceite")'"N" ' Aceite
x128 = RsConfig("banco")'"356"  ' Banco
banco_dv = RsConfig("dvbanco")'"5" ' DV Banco
x19 = RsConfig("moeda")'"9" ' Moeda 
x160=RsConfig("especie2")'"R$" ' Especie 2
%>
<%
SQL2 = "SELECT * FROM Clientes Where id ="&request("CodCli")
Call AbreConexao
Set RsCli = Conexaodb.execute(SQL2)
%>
<input type="hidden" value="<%=date%>" name="EnviadoEm" />
<input type="hidden" value="<%=request("CodCli")%>" name="Cliente" />
<input type="hidden" value="<%=RsCli("dadosEmail")%>" name="EnviadoEmail" />

<input type="hidden" value="<%=x101%>" name="ValorDocumento" />
<input type="hidden" value="<%=x81%>" name="nossonumero" />
<input type="hidden" value="<%=x33%>" name="vencimento" />
<input type="hidden" value="<%=x109%>" name="sacador" />
<input type="hidden" value="<%=x70%>" name="endereco" />
<input type="hidden" value="<%=x79%>" name="bairro" />
<input type="hidden" value="<%=x74%>" name="cep" />
<input type="hidden" value="<%=x67%>" name="cidade" />
<input type="hidden" value="<%=x28%>" name="estado" />

<input type="hidden" value="<%=x89%>" name="NumeroContrato" />

<input type="hidden" value="<%=x136%>" name="cedente" />
<input type="hidden" value="<%=x49%>" name="CPFcnpj" />
<input type="hidden" value="<%=x10%>" name="carteira" />
<input type="hidden" value="<%=x154%>" name="convenio" />
<input type="hidden" value="<%=x83%>" name="agencia" />
<input type="hidden" value="<%=x121%>" name="digitoagencia" />
<input type="hidden" value="<%=x64%>" name="conta" />
<input type="hidden" value="<%=x72%>" name="digitoConta" />
<!--
<input type="hidden" value="<%=x12%>" name="linha1" />
<input type="hidden" value="<%=x20%>" name="linha2" />
<input type="hidden" value="<%=x48%>" name="linha3" />
<input type="hidden" value="<%=x21%>" name="linha4" />
<input type="hidden" value="<%=x1%>" name="especie" />
-->
<input type="hidden" value="<%=x80%>" name="linha1" />
<input type="hidden" value="<%=x171%>" name="linha2" />
<input type="hidden" value="<%=x130%>" name="linha3" />
<input type="hidden" value="<%=x97%>" name="linha4" />
<!--
<input type="hidden" value="<%=x73%>" name="especie2" />
<input type="hidden" value="<%=x163%>" name="dvBanco" />
<input type="hidden" value="<%=x98%>" name="dvBanco" />
-->
<input type="hidden" value="<%=x34%>" name="especie" />
<input type="hidden" value="<%=x174%>" name="aceite" />
<input type="hidden" value="<%=x128%>" name="banco" />
<input type="hidden" value="<%=banco_dv%>" name="dvbanco" />
<input type="hidden" value="<%=x19%>" name="moeda" />
<input type="hidden" value="<%=x160%>" name="especie2" />
<%
Function x32(x126, x13)
	Dim x51, x27, x122, x150, x151, cnum
	x126 = RTrim(LTrim(x126))
	For x150 = 1 To Len(x126)
		x151 = Mid(x126, x150, 1)
		If IsNumeric(x151) Then
			cnum = cnum & x151
		End If
	Next
	x126 = cnum
	x122 = "0000000000000000000000000000": x51 = CInt(x51)
	If Len(x126) < x13 Then 
		x51 = Abs(x13) - Abs(Len(x126)): x27 = Mid(x122, 1, x51) & CStr(x126)
		x32 = x27
	ElseIf Len(x126) > x13 Then
		x32 = Right(x126, x13)
	Else
		x32 = x126
	End If
End Function

Function x16(x15, x36, x94)
	Dim x87, x69, x45
	x45 = x36 + 1
	x87 = ""
	Do
		If IsNumeric(Mid(x15, (x45), 1)) Then
			x87 = x87 & Mid(x15, (x45), 1)
			x45 = x45 + 1
		End If
	Loop While IsNumeric(Mid(x15, (x45), 1))
	For x69 = 1 To x87
		x94 = x94 & (x91(53))
	Next
	x36 = x36 + 2
	x16 = x94
End Function

Function x14(x15)
	Dim x36, x78, x60, x94
	x94 = ""
	For x36 = 1 To Len(x15)
		x78 = 0
		If Mid(x15, (x36), 1) = "¹" Then
			x94 = x16(x15, x36, x94)
			x78 = 0
		End If
		x78 = InStr(1, x135, Mid(x15, (x36), 1), vbBinaryCompare)
		If x78 > 0 Then
   			If x78 <= 113 Then
  				x94 = x94 & (x91(x78 + 1))
  			 Else
  				x94 = x94 & (x91(1))
  			End If
		End If
	Next
	x14 = x94 : response.write x14
End Function

Function x31(x36)
	Dim x59, x30, x173, x68, x82, x120, x113
	x68 = 2
	For x59 = 1 To 43
		x113 = Mid(Right(x36, x59), 1, 1)
		If x68 > 9 Then
			x68 = 2: x30 = 0
		End If
		x30 = x113 * x68: x173 = x173 + x30: x68 = x68 + 1
	Next
	x82 = x173 Mod 11
	x120 = 11 - x82
	If x120 = 0 Or x120 = 1 Or x120 > 9 Then
		x31 = 1
	Else
		x31 = x120
	End If
End Function

Function x102(x124)
	Dim x59, x30, x173, x68, x82, x25 
	If Not IsNumeric(x124) Then
		x102 = ""
		Exit Function
	End If
	x68 = 2
	For x59 = Len(x124) To 1 Step -1
		x30 = CInt(Mid(x124, x59, 1)) * x68
		If x30 > 9 Then
			x30 = CInt(Left(x30, 1) + CInt(Right(x30, 1)))
		End If
		x173 = x173 + x30
		If x68 = 2 Then
			x68 = 1
		Else
			x68 = 2
		End If
	Next
	x25 = (x173 / 10) * -1: x25 = Int([x25]) * -1: x25 = x25 * 10
	x82 = x25 - x173: x102 = x82
	If x102 = 10 Then x102 = 0
End Function

Function x77(x36, x66, x92, x142)
	Dim x112, x55, x42, x65, x105, x87, x69, x45
	x112 = Left(x36, 9): x55 = Mid(x36, 10, 10): x42 = Right(x36, 10)
	x105 = CCur(x142): x65 = x32(x105, 10)
	x87 = x102(x112): x69 = x102(x55): x45 = x102(x42)
	x112 = Left(x112 & x87, 5) & "." & Right(x112 & x87, 5)
	x55 = Left(x55 & x69, 5) & "." & Right(x55 & x69, 6)
	x42 = Left(x42 & x45, 5) & "." & Right(x42 & x45, 6)
	x77 = x112 & "  " & x55 & "  " & x42 & "  " & x66 & "  " & x92 & x65
End Function

Function x17(x108, x140, x106, x142, x58)
	Dim x116, x146, x75, x46
	If x106 <> "" Then
		x75 = CDate("7/10/1997")
		x146 = DateDiff("d", x75, CDate(x106))
	Else
		x146 = "0000"
	End If
	x142 = Int(x142 * 100)
	x116 = x108 & x140 & x146 & x32(x142, 10) & x58: x46 = x31(x116)
	x17 = (Left(x116, 4) & x46 & Right(x116, 39))
End Function

Function x147(x108, x140, x106, x142, x58)
	Dim x116, x146, x75, x46
	If x106 <> "" Then
		x75 = CDate("7/10/1997")
		x146 = DateDiff("d", x75, CDate(x106))
	Else
		x146 = "0000"
	End If
	x142 = Int(x142 * 100): x116 = x108 & x140 & x146 & x32(x142, 10) & x58
	x46 = x31(x116): x147 = x77(x108 & x140 & x58, CStr(x46), x146, x32(x142, 10))
End Function

Function x91(x78)
	x91 = Mid(x135, x78, 1)
End Function

Function x23(x15)
	For x18 = 1 To Len(x15) Step 3
		x78 = 0 : x78 = Mid(x15, (x18), 3) : x94 = x94 & x91(x78)
	Next
	x23 = x94 
End Function

Function x4(x15)
	For x18 = 1 To Len(x15) Step 3
		x78 = 0 : x78 = Mid(x15, (x18), 3) : x94 = x94 & x91(x78)
	Next
	x4 = x94 : response.write x4
End Function

x11= x136
If x10 = "57" Then
	x81 = x32(x81, 13)
Else
	x81 = x32(x81, 7)
End If
If x89 = "" Then x89 = x81
x119 = CStr(x81)
x83 = x32(x83, 4)
x64 = x32(x64, 7)
x121 = x102(x119 & x83 & x64)
x100 = x64
x127 = x83 & "/" & x100 & "/" & x121
x5 = x83 & x64 & x121 & x32(x119, 13)
x123 = x17(x128, x19, CDate(x33), CCur(x101), x5)
x57 = x147(x128, x19, CDate(x33), CCur(x101), x5)
x104 = x119
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><%= nomeloja %>-<%= Slogan_da_sua_loja %></title>
<script language="JavaScript" type="text/JavaScript">
<!--
//function printPage() {
//	print(document); 
}
// -->
</script>

<style type="text/css">
<!--
.bc {font: bold 20px Arial; color: #000000 }
.cp {font: bold 10px Arial; color: black}
.ct {font: 9px "Arial Narrow"; color: #000033}
.ld {font: bold 15px Arial; color: #000000}
.ld2 {font: bold 12px Arial; color: #000000 }
.ti {font: 9px Arial, Helvetica, sans-serif}
-->
</style>
</head>
<!-- include file="pdf.asp"-->
<body onLoad="printPage()" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="text-align:center;">
<table width="666" cellspacing="0" cellpadding="0" border="0">
  <tr>
    <td valign="top" class="cp"><div align="center">Instruções 
      de Impressão</div></td>
  </tr>
  <tr>
    <td valign="top" class="cp"><div align="left">
      <p> </p>
      <li>Imprima em impressora jato de tinta (ink jet) ou laser em qualidade normal ou alta (Não use modo econômico).<br />
      </li>
      <li>Utilize folha A4 (210 x 297 mm) ou Carta (216 x 279 mm) e margens mínimas à esquerda e à direita do formulário.<br />
      </li>
      <li>Corte na linha indicada. Não rasure, risque, fure ou dobre a região onde se encontra o código de barras.<br />
      </li>
      <li>Caso não apareça o código de barras no final, clique em F5 para atualizar esta tela. </li>
      <li>Caso tenha problemas ao imprimir, copie a seqüencia numérica abaixo e pague no caixa eletrônico ou no internet banking:<br />
            <br />
            <span class="ld2">     Linha Digitável:  <span class="ld"><%=x57%></span><br />
                  Valor:   R$ <%=x101%><br />
          </span> </li>
    </div></td>
  </tr>
</table>
<br />
<table cellspacing="0" cellpadding="0" width="666" border="0">
  <tbody>
    <tr>
      <td class="ct" width="666"><img height="1" src="imagens/6.png" width="665" border="0" /></td>
    </tr>
    <tr>
      <td class="ct" width="666"><div align="right"><b class="cp">Recibo do Sacado</b></div></td>
    </tr>
  </tbody>
</table>
<table width="666" cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td width="41"></td>
  </tr>
</table>
<table width="666" cellspacing="5" cellpadding="0" border="0" align="Default">
  <tr>
    <td width="41"> </td>
    <td class="ti" width="455"><br />
    </td>
    <td align="right" width="150" class="ti"> </td>
  </tr>
</table>
<br />
<table cellspacing="0" cellpadding="0" width="666" border="0">
  <tr>
    <td class="cp" width="150"><span class="campo"><img 
      src="imagens/logoreal.jpg" width="150" height="40" 
      border="0" /></span></td>
    <td width="3" valign="bottom"><img height="22" src="imagens/3.png" width="2" border="0" /></td>
    <td class="cpt" width="58" valign="bottom"><div align="center"><font class="bc"><%=x128%>-<%=banco_dv%></font></div></td>
    <td width="3" valign="bottom"><img height="22" src="imagens/3.png" width="2" border="0" /></td>
    <td class="ld" align="right" width="453" valign="bottom"><%=x57%></td>
  </tr>
  <tbody>
    <tr>
      <td colspan="5"><img height="2" src="imagens/2.png" width="666" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="298" height="13">Cedente</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="126" height="13">Agência/Código 
        do Cedente</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="34" height="13">Espécie</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="53" height="13">Quantidade</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="120" height="13">Nosso 
        número</td>
    </tr>
    <tr>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" width="298" height="12"><%=x136%></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" width="126" height="12"><%=x127%></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top"  width="34" height="12"><%=x160%></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top"  width="53" height="12"><span class="campo"> </span> <%=x98%></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" align="right" width="120" height="12"><%=x104%></td>
    </tr>
    <tr>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="298" height="1"><img height="1" src="imagens/2.png" width="298" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="126" height="1"><img height="1" src="imagens/2.png" width="126" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="34" height="1"><img height="1" src="imagens/2.png" width="34" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="53" height="1"><img height="1" src="imagens/2.png" width="53" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="120" height="1"><img height="1" src="imagens/2.png" width="120" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" colspan="3" height="13">Número 
        do documento</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="132" height="13">CPF/CNPJ</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="134" height="13">Vencimento</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="180" height="13">Valor 
        documento</td>
    </tr>
    <tr>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" colspan="3" height="12"><%=x89%></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" width="132" height="12"><%= x49%></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" width="134" height="12"><%=x33%></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" align="right" width="180" height="12"><%=x101%></td>
    </tr>
    <tr>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="113" height="1"><img height="1" src="imagens/2.png" width="113" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="72" height="1"><img height="1" src="imagens/2.png" width="72" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="132" height="1"><img height="1" src="imagens/2.png" width="132" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="134" height="1"><img height="1" src="imagens/2.png" width="134" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="180" height="1"><img height="1" src="imagens/2.png" width="180" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="113" height="13">(-) 
        Desconto / Abatimentos</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="112" height="13">(-) 
        Outras deduções</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="113" height="13">(+) 
        Mora / Multa</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="113" height="13">(+) 
        Outros acréscimos</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="180" height="13">(=) 
        Valor cobrado</td>
    </tr>
    <tr>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" align="right" width="113" height="12"></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" align="right" width="112" height="12"></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" align="right" width="113" height="12"></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" align="right" width="113" height="12"></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" align="right" width="180" height="12"></td>
    </tr>
    <tr>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="113" height="1"><img height="1" src="imagens/2.png" width="113" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="112" height="1"><img height="1" src="imagens/2.png" width="112" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="113" height="1"><img height="1" src="imagens/2.png" width="113" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="113" height="1"><img height="1" src="imagens/2.png" width="113" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="180" height="1"><img height="1" src="imagens/2.png" width="180" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="659" height="13">Sacado</td>
    </tr>
    <tr>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" width="659" height="12"><%=x109 %></td>
    </tr>
    <tr>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="659" height="1"><img height="1" src="imagens/2.png" width="659" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td class="ct"  width="7" height="12"></td>
      <td class="ct"  width="564" >Demonstrativo</td>
      <td class="ct"  width="7" height="12"></td>
      <td class="ct"  width="88" >Autenticação 
        mecânica</td>
    </tr>
    <!--
    <tr>
      <td  width="7" ></td>
      <td class="cp" width="564" ><%response.write x12 & "<br>" : response.write x20 & "<br>"
response.write x48 & "<br>" : response.write x21 & "<br>" : response.write x1%></td>
      <td  width="7" ></td>
      <td  width="88" ></td>
    </tr>
    -->
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" width="666" border="0">
  <tbody>
    <tr>
      <td width="7"></td>
      <td  width="500" class="cp"><br />
          <br />
        <br />
      </td>
      <td width="159"></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" width="666" border="0">
  <tr>
    <td class="ct" width="666"></td>
  </tr>
  <tbody>
    <tr>
      <td class="ct" width="666"><div align="right">Corte na linha pontilhada</div></td>
    </tr>
    <tr>
      <td class="ct" width="666"><img height="1" src="imagens/6.png" width="665" border="0" /></td>
    </tr>
  </tbody>
</table>
<br />
<table cellspacing="0" cellpadding="0" width="666" border="0">
  <tr>
    <td class="cp" width="150"><span class="campo"><img 
      src="imagens/logoreal.jpg" width="150" height="40" 
      border="0" /></span></td>
    <td width="3" valign="bottom"><img height="22" src="imagens/3.png" width="2" border="0" /></td>
    <td class="cpt" width="58" valign="bottom"><div align="center"><font class="bc"><%=x128%>-<%=banco_dv%></font></div></td>
    <td width="3" valign="bottom"><img height="22" src="imagens/3.png" width="2" border="0" /></td>
    <td class="ld" align="right" width="453" valign="bottom"><%=x57%></td>
  </tr>
  <tbody>
    <tr>
      <td colspan="5"><img height="2" src="imagens/2.png" width="666" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="472" height="13">Local 
        de pagamento</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="180" height="13">Vencimento</td>
    </tr>
    <tr>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" width="472" height="12">Pagável 
        em qualquer Banco até o vencimento</td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" align="right" width="180" height="12"><%=x33%></td>
    </tr>
    <tr>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="472" height="1"><img height="1" src="imagens/2.png" width="472" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="180" height="1"><img height="1" src="imagens/2.png" width="180" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="472" height="13">Cedente</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="180" height="13">Agência/Código 
        cedente</td>
    </tr>
    <tr>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" width="472" height="12"><%=x136%></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" align="right" width="180" height="12"><%=x127%></td>
    </tr>
    <tr>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="472" height="1"><img height="1" src="imagens/2.png" width="472" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="180" height="1"><img height="1" src="imagens/2.png" width="180" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="113" height="13">Data 
        do documento</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="153" height="13">N<u>o</u> documento</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="62" height="13">Espécie 
        doc.</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="34" height="13">Aceite</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="82" height="13">Data 
        processamento</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="180" height="13">Nosso 
        número</td>
    </tr>
    <tr>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top"  width="113" height="12"><div align="left"><%=date()%></div></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" width="153" height="12"><%=x89%></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top"  width="62" height="12"><div align="left"><%=x34%></div></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top"  width="34" height="12"><div align="left">
        <div align="left"><%=x174%> </div>
      </div></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top"  width="82" height="12"><div align="left"><%=date()%></div></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" align="right" width="180" height="12"><%=x104%></td>
    </tr>
    <tr>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="113" height="1"><img height="1" src="imagens/2.png" width="113" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="153" height="1"><img height="1" src="imagens/2.png" width="153" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="62" height="1"><img height="1" src="imagens/2.png" width="62" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="34" height="1"><img height="1" src="imagens/2.png" width="34" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="82" height="1"><img height="1" src="imagens/2.png" width="82" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="180" height="1"><img height="1" src="imagens/2.png" width="180" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" colspan="3" height="13">Uso 
        do banco</td>
      <td class="ct" valign="top" height="13" width="7"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="83" height="13">Carteira</td>
      <td class="ct" valign="top" height="13" width="7"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="53" height="13">Espécie</td>
      <td class="ct" valign="top" height="13" width="7"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="123" height="13">Quantidade</td>
      <td class="ct" valign="top" height="13" width="7"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="72" height="13"> Valor Documento</td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="180" height="13">(=) 
        Valor documento</td>
    </tr>
    <tr>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td valign="top" class="cp" height="12" colspan="3"><div align="left"><%=x163%> </div></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top"  width="83"><div align="left"><%=x10%></div></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top"  width="53"><div align="left"><%=x160%></div></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top"  width="123"><span class="campo"> </span> <%=x98%></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top"  width="72"><span class="campo"><%=x101%> </span></td>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" align="right" width="180" height="12"><%=x101%></td>
    </tr>
    <tr>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="75" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="31" height="1"><img height="1" src="imagens/2.png" width="31" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="83" height="1"><img height="1" src="imagens/2.png" width="83" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="53" height="1"><img height="1" src="imagens/2.png" width="53" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="123" height="1"><img height="1" src="imagens/2.png" width="123" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="72" height="1"><img height="1" src="imagens/2.png" width="72" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="180" height="1"><img height="1" src="imagens/2.png" width="180" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td width="7" rowspan="2" valign="top" class="ct"><table cellspacing="0" cellpadding="0" border="0" align="left">
        <tbody>
          <tr>
            <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
          </tr>
          <tr>
            <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
          </tr>
          <tr>
            <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="1" border="0" /></td>
          </tr>
        </tbody>
      </table></td>
      <td class="ct" valign="top" width="472" height="13">Instruções (Texto de responsabilidade do cedente)</td>
      <td colspan="2" rowspan="2" valign="top"><table cellspacing="0" cellpadding="0" border="0">
        <tbody>
          <tr>
            <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
            <td class="ct" valign="top" width="180" height="13">(-) 
              Desconto / Abatimentos</td>
          </tr>
          <tr>
            <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
            <td class="cp" valign="top" align="right" width="180" height="12"></td>
          </tr>
          <tr>
            <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
            <td valign="top" width="180" height="1"><img height="1" src="imagens/2.png" width="180" border="0" /></td>
          </tr>
        </tbody>
      </table></td>
    </tr>
    <tr>
      <td width="472" rowspan="5" valign="top" class="cp"><%response.write x80 & "<br>" : response.write x171 & "<br>"
response.write x130 & "<br>" : response.write x97 & "<br>" : response.write x73%></td>
    </tr>
    <tr>
      <td class="cp" valign="top" height="12"><table cellspacing="0" cellpadding="0" border="0" align="left">
        <tbody>
          <tr>
            <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
          </tr>
          <tr>
            <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
          </tr>
          <tr>
            <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="1" border="0" /></td>
          </tr>
        </tbody>
      </table></td>
      <td colspan="2" valign="top"><table cellspacing="0" cellpadding="0" border="0">
        <tbody>
          <tr>
            <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
            <td class="ct" valign="top" width="180" height="13">(-) 
              Outras deduções</td>
          </tr>
          <tr>
            <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
            <td class="cp" valign="top" align="right" width="180" height="12"></td>
          </tr>
          <tr>
            <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
            <td valign="top" width="180" height="1"><img height="1" src="imagens/2.png" width="180" border="0" /></td>
          </tr>
        </tbody>
      </table></td>
    </tr>
    <tr>
      <td class="cp" valign="top" height="12"><table cellspacing="0" cellpadding="0" border="0" align="left">
        <tbody>
          <tr>
            <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
          </tr>
          <tr>
            <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
          </tr>
          <tr>
            <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="1" border="0" /></td>
          </tr>
        </tbody>
      </table></td>
      <td colspan="2" valign="top"><table cellspacing="0" cellpadding="0" border="0">
        <tbody>
          <tr>
            <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
            <td class="ct" valign="top" width="180" height="13">(+) 
              Mora / Multa</td>
          </tr>
          <tr>
            <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
            <td class="cp" valign="top" align="right" width="180" height="12"></td>
          </tr>
          <tr>
            <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
            <td valign="top" width="180" height="1"><img height="1" src="imagens/2.png" width="180" border="0" /></td>
          </tr>
        </tbody>
      </table></td>
    </tr>
    <tr>
      <td class="cp" valign="top" height="12"><table cellspacing="0" cellpadding="0" border="0" align="left">
        <tbody>
          <tr>
            <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
          </tr>
          <tr>
            <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
          </tr>
          <tr>
            <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="1" border="0" /></td>
          </tr>
        </tbody>
      </table></td>
      <td colspan="2" valign="top"><table cellspacing="0" cellpadding="0" border="0">
        <tbody>
          <tr>
            <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
            <td class="ct" valign="top" width="180" height="13">(+) 
              Outros acréscimos</td>
          </tr>
          <tr>
            <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
            <td class="cp" valign="top" align="right" width="180" height="12"></td>
          </tr>
          <tr>
            <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
            <td valign="top" width="180" height="1"><img height="1" src="imagens/2.png" width="180" border="0" /></td>
          </tr>
        </tbody>
      </table></td>
    </tr>
    <tr>
      <td class="cp" valign="top" height="12"><table cellspacing="0" cellpadding="0" border="0" align="left">
        <tbody>
          <tr>
            <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
          </tr>
          <tr>
            <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
          </tr>
          <tr>
            <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="1" border="0" /></td>
          </tr>
        </tbody>
      </table></td>
      <td colspan="2" valign="top"><table cellspacing="0" cellpadding="0" border="0">
        <tbody>
          <tr>
            <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
            <td class="ct" valign="top" width="180" height="13">(=) 
              Valor cobrado</td>
          </tr>
          <tr>
            <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
            <td class="cp" valign="top" align="right" width="180" height="12"></td>
          </tr>
        </tbody>
      </table></td>
    </tr>
    <tr>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="472" height="1"><img height="1" src="imagens/2.png" width="472" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="180" height="1"><img height="1" src="imagens/2.png" width="180" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" width="666" border="0">
  <tbody>
    <tr>
      <td valign="top" width="666" height="1"><img height="1" src="imagens/2.png" width="666" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="659" height="13">Sacado</td>
    </tr>
    <tr>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" width="659" height="12"><%=x109 %></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td class="cp" valign="top" width="7" height="12"><img height="12" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" width="659" height="12"><%=x70 & " - " & x79 %></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0">
  <tbody>
    <tr>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="cp" valign="top" width="472" height="13"><%= x74 & " - " & x67 & " - " & x28 %></td>
      <td class="ct" valign="top" width="7" height="13"><img height="13" src="imagens/1.png" width="1" border="0" /></td>
      <td class="ct" valign="top" width="180" height="13">Cód. 
        baixa</td>
    </tr>
    <tr>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="472" height="1"><img height="1" src="imagens/2.png" width="472" border="0" /></td>
      <td valign="top" width="7" height="1"><img height="1" src="imagens/2.png" width="7" border="0" /></td>
      <td valign="top" width="180" height="1"><img height="1" src="imagens/2.png" width="180" border="0" /></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="666">
  <tbody>
    <tr>
      <td class="ct"  width="7" height="12"></td>
      <td class="ct"  width="409" >Sacador/Avalista</td>
      <td class="ct"  width="250" ><div align="right">Autenticação 
        mecânica - <b class="cp">Ficha de Compensação</b></div></td>
    </tr>
    <tr>
      <td class="ct"  colspan="3" ></td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" width="666" border="0">
  <tbody>
    <tr>
      <td valign="bottom" align="left" height="50"> <%x129( x123 )
Sub x129( x22 )
	Dim x2(99)
	Const x85 = 1 : Const x131 = 3 : Const x44 = 50
	if isempty(x2(0)) then
		x2(0) = "00110" : x2(1) = "10001" : x2(2) = "01001" : x2(3) = "11000"
		x2(4) = "00101" : x2(5) = "10100" : x2(6) = "01100" : x2(7) = "00011"
		x2(8) = "10010" : x2(9) = "01010" 
		for x99 = 9 to 0 step -1
			for x3 = 9 to 0 Step -1
				x125 = x99 * 10 + x3 : x126 = ""
				for x18 = 1 To 5
					x126 = x126 & mid(x2(x99), x18, 1) + mid(x2(x3), x18, 1)
				next
				x2(x125) = x126
			next
		next
	end if
%>
<img src="imagens/p.gif" width="<%=x85%>" height="<%=x44%>" border="0" /><img 
src="imagens/b.gif" width="<%=x85%>" height="<%=x44%>" border="0" /><img 
src="imagens/p.gif" width="<%=x85%>" height="<%=x44%>" border="0" /><img 
src="imagens/b.gif" width="<%=x85%>" height="<%=x44%>" border="0" /><img 
<%
x126 = x22
if len(x126) mod 2 <> 0 then
	x126 = "0" & x126
end if
do while len(x126) > 0
	x18 = cint(left( x126, 2)) : x126 = right(x126, len(x126) - 2) : x125 = x2(x18)
	for x18 = 1 to 10 step 2
		if mid(x125, x18, 1) = "0" then
			x99 = x85
		else
		x99 = x131
		end if
%>
src="imagens/p.gif" width="<%=x99%>" height="<%=x44%>" border="0" /><img 
<%
if mid(x125, x18 + 1, 1) = "0" Then
	x3 = x85
else
	x3 = x131
end if
%>
src="imagens/b.gif" width="<%=x3%>" height="<%=x44%>" border="0" /><img 
<% next : loop %>
src="imagens/p.gif" width="<%=x131%>" height="<%=x44%>" border="0" /><img src="imagens/b.gif" width="<%=x85%>" height="<%=x44%>" border="0" /><img src="imagens/p.gif" width="<%=1%>" height="<%=x44%>" border="0" />
<% end sub %>
	  </td>
    </tr>
  </tbody>
</table>
<table cellspacing="0" cellpadding="0" width="666" border="0">
  <tr>
    <td class="ct" width="666"></td>
  </tr>
  <tbody>
    <tr>
      <td class="ct" width="666"><div align="right">Corte na linha pontilhada</div></td>
    </tr>
    <tr>
      <td class="ct" width="666"><img height="1" src="imagens/6.png" width="665" border="0" /></td>
    </tr>
  </tbody>
</table>
</body>
</html>

<%
CodCli = request("CodCli")

SQL2 = "SELECT * FROM Clientes Where id ="&request("CodCli")
Call AbreConexao
Set RsCli = Conexaodb.execute(SQL2)
%>
<%
'cadastro no banco
SQL3 = "Insert Into boletos (Cliente, EnviadoEm, EnviadoEmail, ValorDocumento, nossonumero, vencimento, sacador, endereco, bairro, cep, cidade, estado, NumeroContrato, cedente, CPFcnpj, carteira, convenio, agencia, digitoagencia, conta, digitoConta, linha1, linha2, linha3, linha4, especie, aceite, banco, dvbanco, moeda, especie2) Values ('"&CodCli&"', '"&date&"', '"&RsCli("dadosEmail")&"', '"&x101&"', '"&x81&"', '"&x33&"', '"&x109&"', '"&x70&"', '"&x79&"', '"&x74&"', '"&x67&"', '"&x28&"', '"&x89&"', '"&x136&"', '"&x49&"', '"&x10&"', '"&x154&"', '"&x83&"', '"&x121&"', '"&x64&"', '"&x72&"', '"&x80&"', '"&x171&"', '"&x130&"', '"&x97&"', '"&x34&"', '"&x174&"', '"&x128&"', '"&banco_div&"', '"&x19&"', '"&x160&"')"
'Response.Write(SQL3)
'Response.End()
Call AbreConexao
Set RS3 = Conexaodb.execute(SQL3)

Response.Redirect("boletopdf.asp?boleto="&x104)
%>


Aqui gera o pdf e envia o link para o cliente.

 


<link href="css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-color:transparent;
}
-->
</style>
<!--'gero o PDF-->
<!-- #include file="config.asp"-->
<!-- #include file="conexao.asp"-->
<!-- Início do script ASP --->
<%
'Declara as variáveis a serem utilizadas no script
Dim Pdf, Doc, Filename, conexaodb

'Instancia o objeto na memória
Set Pdf = Server.CreateObject("Persits.Pdf")
Set Doc = Pdf.CreateDocument

	SQL2 = "SELECT MAX(id) as id FROM Boletos"
	CAlL AbreConexao
	Set RsMax = conexaodb.execute(SQL2)
	id = RsMax("id")

Doc.ImportFromUrl "http://www.consultta.com/sistema_financeiro/CobrancaEnviaBoletoGeraBoleto2.asp?id="&id

'boleto = x104&".pdf"
boleto = request("boleto")&".pdf"

	SQL = "UPDATE Boletos SET boleto='"&boleto&"' WHERE id ="&RsMax("id")
	set rs = conexaodb.execute(sql)

Filename = Doc.Save( Server.MapPath(boleto), False ) 
 
response.write "<span class='txtgeral'><center><b>Arquivo gerado com sucesso!</b>"
response.write "<br>Clique <a href=" & Filename & " target='_blank' class='linkgeral'>aqui</a> para visualizar o arquivo.</center></span>"
 
SET Pdf = Nothing
SET Doc = Nothing

%>
<!--
' Envio e-mail-->

<%

	'SQL3 = "SELECT MAX(id) as id FROM Boletos"
	SQL3 = "SELECT top 1 * FROM Boletos WHERE id="&id
	CAlL AbreConexao
	Set Rs3 = conexaodb.execute(SQL3)
	'response.Write(Rs3("EnviadoEmail"))
	'response.End()

Set Mail = Server.CreateObject("Persits.MailSender")
'..Servidor de SMTP
Mail.Host = smtp
'..E-mail do remetente
Mail.From = nomeemailcliente
'..Remetente
'Mail.FromName = "nome"
'..E-mail do destinatário
Mail.AddAddress Rs3("EnviadoEmail") '"emaildestinatario@dominio"', "seunome"
'..Assunto da mensagem
Mail.Subject = "Fatura Referente a Serviços Prestados - "&nomecliente'"titulo do email"
'..Corpo da mensagem
'Mail.Body = "Olá!" & Chr(13) & Chr(10) & "Isso é apenas um teste do componente ASPEmail"
Mail.Body = "<font face='Arial' size='2'><strong>Prezado(a)</strong><br><br> Estamos enviando o boleto para pagamento referente a serviços prestados pela <strong>"&nomecliente&"</strong> <br><br> <strong>Vencimento:</strong> "&rs3("vencimento")&"<br> <strong>Valor:</strong> "&rs3("ValorDocumento")&" <br><br> Boleto Bancário disponível para impressão em: <a href='"&nomesitecliente&"/sistema_financeiro/"&rs3("boleto")&"'>"&nomesitecliente&"/sistema_financeiro/"&rs3("boleto")&"</a>.</font>"
'..Utilize este código caso o formato do e-mail seja HTML
Mail.IsHTML = True
'..Utilize este código caso for enviar anexo.
'Mail.AddAttachment(nomesitecliente&"/"&rs("boleto"))
'objCDOSYSMail.AddAttachment(Server.MapPath(nm_Arquivo))
'Mail.AddAttachment ("http://www.consultta.com/sistema_financeiro/0000038(22).pdf")
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If
%>
<%Set Mail = Nothing%>

O que eu quero no local de gera o pdf ele gera um html ou jpg

Compartilhar este post


Link para o post
Compartilhar em outros sites

Você terá que capturar o HTML gerado pela página executada para poder inserir no TXT/HTML.

 

Dê uma olhada nesses exemplos e vá adaptando para sua necessidade:

 

http://forum.imasters.com.br/index.php?/topic/341757-asphttp-resgastando-e-postando-dados-para-uma-url/

 

http://forum.imasters.com.br/index.php?/topic/380939-pegando-informacoes-de-outra-pagina/page__hl__XMLHTTP__fromsearch__1

Compartilhar este post


Link para o post
Compartilhar em outros sites

você também pode gerar/montar seu HTML através do FSO...

Compartilhar este post


Link para o post
Compartilhar em outros sites

Você terá que capturar o HTML gerado pela página executada para poder inserir no TXT/HTML.

 

Dê uma olhada nesses exemplos e vá adaptando para sua necessidade:

 

http://forum.imasters.com.br/index.php?/topic/341757-asphttp-resgastando-e-postando-dados-para-uma-url/

 

http://forum.imasters.com.br/index.php?/topic/380939-pegando-informacoes-de-outra-pagina/page__hl__XMLHTTP__fromsearch__1

 

 

O modelo:

http://forum.imasters.com.br/index.php?/topic/341757-asphttp-resgastando-e-postando-dados-para-uma-url/

 

Deu certo, mas como faço para salvar o html gerado ?

Compartilhar este post


Link para o post
Compartilhar em outros sites

usa o método para Postar os dados

e dá o Response.Write no Resultado

Compartilhar este post


Link para o post
Compartilhar em outros sites

usa o método para Postar os dados

e dá o Response.Write no Resultado

 

 

Não entendi, teria um exemplo ?

 

Eu tentei isso

Mail.AddAttachment(Server.MapPath(rs3("boleto")))
Mas nem deu certo.

Compartilhar este post


Link para o post
Compartilhar em outros sites

atribua o resulta da função a uma variavel e concatene no attch

Compartilhar este post


Link para o post
Compartilhar em outros sites
O modelo:

http://forum.imaster...s-para-uma-url/

 

Deu certo, mas como faço para salvar o html gerado ?

 

Agora dê uma pesquisada por criação de arquivos usando FSO. Você irá usar a variável do exemplo passado para gravar no arquivo.

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.