/// <summary> /// Adiciona um novo boleto. /// </summary> /// <param name="lBoleto">Informe os dados do boleto.</param> public void AddBoleto( Boleto lBoleto) { if( _Encerrado) throw new Exception( "Após ter obtido o(s) boleto(s) montados pelo método ToString não é permitido adicionar novos boletos."); string lNossoNumero, lLinhaDigitavel, lCodigoBarras; lBoleto.MontaCodigos( out lNossoNumero, out lLinhaDigitavel, out lCodigoBarras); lLinhaDigitavel = lLinhaDigitavel.Replace( " ", " "); string sImgBarra = _ImagesFolder + @"/barra.gif"; string sImgCorte = _ImagesFolder + @"/corte.gif"; string Codiodebarras = CodigoBarras25I( lCodigoBarras); _Counter++; if( _Counter>=2) _Buffer.Append("<p class=SaltoDePagina></p>"); //Comprovante de entrega _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td width=150><img src=\"" + _ImagesFolder + @"\" + lBoleto.BancoLogoTipo + "\"></td>"); _Buffer.Append("<td vAlign=bottom width=2><IMG src=\"" + sImgBarra + "\" height=22 width=2 border=0 ></td>"); _Buffer.Append("<td vAlign=bottom align=center width=75><span id=nb1 class=\"nbanco\">" + lBoleto.BancoCodigoCompleto() + "</span></td>"); _Buffer.Append("<td vAlign=bottom width=2><IMG height=22 src=\"" + sImgBarra + "\" width=2 border=0 ></td>"); _Buffer.Append("<td class=ld vAlign=bottom align=\"right\"> Comprovante de Entrega </td></tr></table>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td vAlign=top width=\"100%\">"); _Buffer.Append("<table borderColor=#000000 cellSpacing=0 cellPadding=0 width=\"100%\" border=1>"); _Buffer.Append("<TR><TD class=linha vAlign=top>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Cedente</td></tr>"); _Buffer.Append("<tr><td class=ld> <span id=Cedente1>" + lBoleto.CedenteNome + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top width=140>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct vAlign=top> Agência / Código do Cedente</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><spam id=CodCedente1>" + lBoleto.AgenciaCedente() + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Nosso Número</td></tr>"); _Buffer.Append("<tr><TD class=ld align=center><spam id=NossoNumero1>" + lNossoNumero + "</Label></TD></tr></table></TD>"); _Buffer.Append("<TD vAlign=top width=140 rowSpan=4><TABLE cellSpacing=0 cellPadding=0 align=center border=0>"); _Buffer.Append("<TR><TD class=ct> ( ) Mudou - se</TD></TR>"); _Buffer.Append("<TR><TD class=ct> ( ) Ausente</TD></TR>"); _Buffer.Append("<TR><TD class=ct> ( ) Não existe n° indicado</TD></TR>"); _Buffer.Append("<TR><TD class=ct> ( ) Recusado</TD></TR>"); _Buffer.Append("<TR><TD class=ct> ( ) Não Procurado</TD></TR>"); _Buffer.Append("<TR><TD class=ct> ( ) Endereço Insuficiente</TD></TR>"); _Buffer.Append("<TR><TD class=ct> ( ) Desconhecido</TD></TR>"); _Buffer.Append("<TR><TD class=ct> ( ) Falecido</TD></TR>"); _Buffer.Append("<TR><TD class=ct> ( ) Outros</TD></TR></TABLE></TD></TR>"); _Buffer.Append("<TR><TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Sacado</td></tr>"); _Buffer.Append("<tr><td class=ld> <spam id=sacado1 >" + lBoleto.SacadoNome + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<TR><TD class=ct> Vencimento</TD></TR>"); _Buffer.Append("<TR><TD class=ld align=center><spam id=vencto1>" + lBoleto.DtVencimento.ToString( Boleto.DATEFORMAT) + "</span></TD></TR></table></TD>"); _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct colSpan=2> Valor do Documento</td></tr>"); _Buffer.Append("<tr><td class=ld width=30> R$</td><td class=ld align=right><spam id=volordoc1>" + lBoleto.Valor.ToString(Boleto.VALORFORMAT) + "</spam> </td></tr></table></TD></TR>"); _Buffer.Append("<TR><td class=ld rowSpan=2> Recebi(emos) o bloqueto/título<br> com as características acima </td>"); _Buffer.Append("<td vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Data de Emissão</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><spam id=dtaemissao1>" + lBoleto.DtEmissao.ToString(Boleto.DATEFORMAT) + "</spam></td></tr></table></td>"); _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Assinatura</td></tr>"); _Buffer.Append("<tr><td class=ld> </td></tr></table></TD></TR>"); _Buffer.Append("<TR><TD vAlign=top width=140>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Data de Entrega</td></tr>"); _Buffer.Append("<tr><td class=ld> </td></tr></table></TD><TD vAlign=top width=140>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Entregador</td></tr>"); _Buffer.Append("<tr><td class=ld> </td></tr></table></TD></TR></TABLE></td></tr>"); _Buffer.Append("<tr><td class=cp align=right><spam id=numerodoc1>" + lBoleto.Documento + "</spam></td></tr></table>"); _Buffer.Append("<div align=center><img src=\"" + sImgCorte + "\"></div>"); //Recibo do Sacado _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td width=150><img src=\"" + _ImagesFolder + @"\" + lBoleto.BancoLogoTipo + "\"></td>"); _Buffer.Append("<td vAlign=bottom width=2><IMG src=\"" + sImgBarra + "\" height=22 width=2 border=0 ></td>"); _Buffer.Append("<td vAlign=bottom align=center width=75 class=\"nbanco\"><spam id=nb2>" + lBoleto.BancoCodigoCompleto() + "</spam></td>"); _Buffer.Append("<td vAlign=bottom width=2><IMG height=22 src=\"" + sImgBarra + "\" width=2 border=0 ></td>"); _Buffer.Append("<td class=ld vAlign=bottom align=right> Recibo do Sacado </td></tr></table>"); _Buffer.Append("<table borderColor=#000000 cellSpacing=0 cellPadding=0 width=\"100%\" border=1>"); _Buffer.Append("<TR><TD vAlign=top colSpan=5><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Local de Pagamento</td></tr>"); _Buffer.AppendFormat("<tr><td class=cp> {0}</td></tr></table></TD>", lBoleto.LocalPagamento); _Buffer.Append("<TD vAlign=top width=140 bgColor=#cccccc><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Vencimento</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><spam id=dtavencto2>" + lBoleto.DtVencimento.ToString( Boleto.DATEFORMAT) + "</spam></td></tr></table></TD></TR>"); _Buffer.Append("<TR><TD vAlign=top colSpan=5><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Cedente</td></tr>"); _Buffer.Append("<tr><td class=ld> <spam id=Cedente2>" + lBoleto.CedenteNome + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Agência / Código do Cedente</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><Spam id=CodCedente2 >" + lBoleto.AgenciaCedente() + "</spam></td></tr></table></TD></TR>"); _Buffer.Append("<TR><TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Data Documento</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><spam id=dtadocumento2 >" + lBoleto.DtDocumento.ToString( Boleto.DATEFORMAT) + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Número Documento</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><spam id=numerodocumento2 >" + lBoleto.Documento + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Espécie Doc.</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><aspam id=especiedocumento2 >" + lBoleto.pEspecieDoc + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Aceite</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><spam id=aceite2>" + lBoleto.Aceite + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Data Processamento</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><spam id=dtaprocess2 >" + lBoleto.DtProcessamento.ToString( Boleto.DATEFORMAT) + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Nosso Número</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><spam id=nossonumero12>" + lNossoNumero + "</spam></td></tr></table></TD></TR>"); _Buffer.Append("<TR><TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Uso da Empresa</td></tr>"); _Buffer.Append("<tr><td class=ld> </td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Carteira</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><spam id=carteira2 >" + lBoleto.Carteira + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Espécie</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><spam id=especie2>" + lBoleto.Especie + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Quantidade</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><spam id=quantidade2>" + lBoleto.Quantidade + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Valor</td></tr>"); _Buffer.Append("<tr><td class=ld align=center><spam id=valor2 >" + lBoleto.Valor.ToString(Boleto.VALORFORMAT) + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top width=140 bgColor=#cccccc><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct colSpan=2> (=) Valor do Documento</td></tr>"); _Buffer.Append("<tr><td class=ld width=30> R$</td><td class=ld align=right><spam id=valordocumento2 >" + lBoleto.Valor.ToString(Boleto.VALORFORMAT) + "</spam> </td></tr></table></TD></TR>"); _Buffer.Append("<TR><TD vAlign=top colSpan=5 rowSpan=5><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Instruções</td></tr>"); _Buffer.Append("<tr><td class=ld> <spam id=Instrucao12 >" + lBoleto.Instrucao1 + "</spam></td></tr>"); _Buffer.Append("<tr><td class=ld> <spam id=instrucao22 >" + lBoleto.Instrucao2 + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> (-) Desconto / Abatimento</td></tr>"); _Buffer.Append("<tr><td class=ld align=center> </td></tr></table></TD></TR>"); _Buffer.Append("<TR><TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> (-) Outras Deduções</td></tr>"); _Buffer.Append("<tr><td class=ld align=center> </td></tr></table></TD></TR>"); _Buffer.Append("<TR><TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> (+) Mora / Multa</td></tr><tr>"); _Buffer.Append("<td class=ld align=center> </td></tr></table></TD></TR><TR>"); _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> (+) Outros Acréscimos</td></tr><tr>"); _Buffer.Append("<td class=ld align=center> </td></tr></table></TD></TR>"); _Buffer.Append("<TR><TD vAlign=top width=140 bgColor=#cccccc>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> (=) Valor Cobrado</td></tr><tr><td class=ld align=center> </td></tr></table></TD></TR><TR>"); _Buffer.Append("<TD vAlign=top colSpan=6><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr>"); _Buffer.Append("<td class=ct width=50> Sacado</td><td class=ld><spam id=Sacado2>" + lBoleto.SacadoNome + "</spam> </td>"); _Buffer.Append("<td class=ld width=\"35%\"><spam id=CPFCNPJSacado2 >" + lBoleto.SacadoCPF_CNPJ + "</spam> </td></tr><tr>"); _Buffer.Append("<td class=ct></td><td class=ld><spam id=EnderecoSacado2 >" + SacadoEnderecoLinha1( lBoleto) + "</spam></td>"); _Buffer.Append("<td class=ld><spam id=nossonumero22>" + lNossoNumero + "</spam></td></tr><tr>"); _Buffer.Append("<td class=ct></td><td class=ld><spam id=Cidate2>" + SacadoEnderecoLinha2(lBoleto) + "</spam></td><td class=ld></td></tr>"); _Buffer.Append("<TR><TD class=ct vAlign=top colSpan=3> Sacador / Avalista</TD></TR></table></TD></TR></table>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> Recebi através do cheque n°"); _Buffer.Append("<BR> do banco:<BR> Esta quitação só terá validade após pagamento do cheque pelo Banco sacado. </td>"); _Buffer.Append("<td class=ct vAlign=top align=center width=150>Autenticação Mecânica</td></tr></table>"); _Buffer.Append("<div align=center><img src=" + sImgCorte + "></div>"); //Parte do Banco _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr>"); _Buffer.Append("<td width=150><img src=" + _ImagesFolder + @"\" + lBoleto.BancoLogoTipo + "></td>"); _Buffer.Append("<td vAlign=bottom width=2><IMG height=22 src=" + sImgBarra + " width=2 border=0 ></td>"); _Buffer.Append("<td vAlign=bottom align=center width=75 class=\"nbanco\"><spam id=nb3>" + lBoleto.BancoCodigoCompleto() + "</spam> </td>"); _Buffer.Append("<td vAlign=bottom width=1><IMG height=22 src=" + sImgBarra + " width=2 border=0 ></td>"); _Buffer.Append("<td class=lLinhaDigitavel vAlign=bottom align=right><spam id=numerograde >" + lLinhaDigitavel + "</spam></td></tr></table>"); _Buffer.Append("<table borderColor=#000000 cellSpacing=0 cellPadding=0 width=\"100%\" border=1>"); _Buffer.Append("<TR><TD vAlign=top colSpan=5><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Local de Pagamento</td></tr>"); _Buffer.AppendFormat( "<tr><td class=ld> {0}</td></tr></table></TD><TD vAlign=top width=140 bgColor=#cccccc><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>", lBoleto.LocalPagamento); _Buffer.Append("<tr><td class=ct> Vencimento</td></tr><tr><td class=ld align=center> <spam id=dtavencto3>" + lBoleto.DtVencimento.ToString( Boleto.DATEFORMAT) + "</spam>"); _Buffer.Append("</td></tr></table></TD></TR><TR><TD vAlign=top colSpan=5>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> Cedente</td></tr><tr>"); _Buffer.Append("<td class=ld> <spam id=cedente3>" + lBoleto.CedenteNome + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Agência / Código do Cedente</td></tr><tr>"); _Buffer.Append("<td class=ld align=center> <aps:label id=codigocedente3>" + lBoleto.AgenciaCedente() + "</spam></td></tr></table></TD></TR>"); _Buffer.Append("<TR><TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Data Documento</td></tr><tr><td class=ld align=center> "); _Buffer.Append("<spam id=Dtadocumento3>" + lBoleto.DtDocumento.ToString( Boleto.DATEFORMAT) + "</spam></td></tr></table></TD><TD vAlign=top>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> Número Documento</td></tr>"); _Buffer.Append("<tr><td class=ld align=center> <spam id=numerodocumento3>" + lBoleto.Documento + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> Espécie Doc.</td></tr>"); _Buffer.Append("<tr><td class=ld align=center> <spam id=especiedocumento3>" + lBoleto.pEspecieDoc + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> Aceite</td></tr>"); _Buffer.Append("<tr><td class=ld align=center CssClass=\"ld\"> <spam id=aceite3>" + lBoleto.Aceite + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> Data Processamento</td></tr>"); _Buffer.Append("<tr><td class=ld align=center> <spam id=dtaprocess3>" + lBoleto.DtProcessamento.ToString( Boleto.DATEFORMAT) + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr>"); _Buffer.Append("<td class=ct> Nosso Número</td></tr><tr>"); _Buffer.Append("<td class=ld align=center> <spam id=nossonumero13>" + lNossoNumero + "</spam></td></tr></table></TD></TR>"); _Buffer.Append("<TR><TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Uso da Empresa</td></tr><tr><td class=ld align=center> </td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr>"); _Buffer.Append("<td class=ct> Carteira</td></tr><tr><td class=ld align=center> <spam id=carteira3>" + lBoleto.Carteira + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr>"); _Buffer.Append("<td class=ct> Espécie</td></tr><tr><td class=ld align=center> <spam id=especie3>" + lBoleto.Especie + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> Quantidade</td></tr>"); _Buffer.Append("<tr><td class=ld align=center> <spam id=quantidade3>" + lBoleto.Quantidade + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> Valor</td></tr>"); _Buffer.Append("<tr><td class=ld align=center> <spam id=valor3>" + lBoleto.Valor.ToString(Boleto.VALORFORMAT) + "</spam></td></tr></table></TD>"); _Buffer.Append("<TD vAlign=top width=140 bgColor=#cccccc><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr>"); _Buffer.Append("<td class=ct> (=) Valor do Documento</td></tr><tr><td class=ld align=center> <spam id=valordocumento3>" + lBoleto.Valor.ToString(Boleto.VALORFORMAT) + "</spam></td></tr></table></TD></TR>"); _Buffer.Append("<TR><td vAlign=top colSpan=5 rowSpan=5><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0>"); _Buffer.Append("<tr><td class=ct> Instruções</td></tr><tr><td class=ld> <spam id=instrucao13>" + lBoleto.Instrucao1 + "</spam></td></tr>"); _Buffer.Append("<tr><td class=ld> <spam id=instrucao23 >" + lBoleto.Instrucao2 + "</spam></td></tr></table></td>"); _Buffer.Append("<TD vAlign=top width=140><table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> (-) Desconto / "); _Buffer.Append("Abatimento</td></tr><tr><td class=ld align=center> </td></tr></table></TD></TR><TR><TD vAlign=top width=140>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> (-) Outras Deduções</td></tr>"); _Buffer.Append("<tr><td class=ld align=center> </td></tr></table></TD></TR><TR><TD vAlign=top width=140>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> (+) Mora / Multa</td></tr>"); _Buffer.Append("<tr><td class=ld align=center> </td></tr></table></TD></TR><TR><TD vAlign=top width=140>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> (+) Outros Acréscimos</td></tr>"); _Buffer.Append("<tr><td class=ld align=center> </td></tr></table></TD></TR><TR><TD vAlign=top width=140 bgColor=#cccccc>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> (=) Valor Cobrado</td></tr>"); _Buffer.Append("<tr><td class=ld align=center> </td></tr></table></TD></TR><TR><TD vAlign=top colSpan=6>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct width=50> Sacado</td>"); _Buffer.Append("<td class=ld><spam id=sacado3>" + lBoleto.SacadoNome + "</spam></td>"); _Buffer.Append("<td class=ld width=\"35%\"><spam id=CPFCNPJSacado3 >" + lBoleto.SacadoCPF_CNPJ + "</spam></td></tr>"); _Buffer.Append("<tr><td class=ct> </td><td class=ld><spam id=EnderecoSacado3 >" + SacadoEnderecoLinha1( lBoleto) + "</spam></td>"); _Buffer.Append("<td class=ld><spam id=nossonumero23 >" + lNossoNumero + "</spam></td></tr><tr>"); _Buffer.Append("<td class=ct> </td><td class=ld><spam id=cidade3 >" + SacadoEnderecoLinha2( lBoleto) + "</spam></td>"); _Buffer.Append("<td class=ld></td></tr><tr><td class=ct colSpan=3> Sacador / Avalista</td></tr></table></TD></TR></table>"); _Buffer.Append("<table cellSpacing=0 cellPadding=0 width=\"100%\" border=0><tr><td class=ct> </td>"); _Buffer.Append("<td class=ct vAlign=top align=center width=150> Autenticação Mecânica</td></tr><tr>"); _Buffer.Append("<td><BR><spam id=CodBarras>" + Codiodebarras + "</spam></td>"); _Buffer.Append("<td class=cp vAlign=bottom align=right> Ficha de Compensação </td></tr></table>"); _Buffer.Append("<div align=center><img src=" + sImgCorte + "></div>"); }
protected string SacadoEnderecoLinha1( Boleto lBoleto) { return lBoleto.SacadoEndereco + " " + lBoleto.SacadoBairro; }
protected string SacadoEnderecoLinha2( Boleto lBoleto) { return lBoleto.SacadoCEP + " " + lBoleto.SacadoCidade + " " + lBoleto.SacadoUF; }
private void ImprimeBoleto(Boleto boleto) { HTMLBoleto geraBoleto = new HTMLBoleto(); geraBoleto.ImagesFolder = "imagesBoleto"; geraBoleto.AddBoleto(boleto); geraBoleto.SaveToFile((Server.MapPath("/") + "\\boletoXX")); Response.Write(geraBoleto.ToString()); }