;** EP_0117 ********************************************************************
;*  Emissao de Nota Promissoria               COMERCIAL AZEVEDO     ************
;*******************************************************************************
;Autor           : Vise Informatica (VISERP)
;Desenvolvido    : 27/10/2004 por Anivel Augusto Rodrigues
;Alterado em     :   /  /     por
;Motivo Alteracao:

;*******************************************************************************
;* Rotina de Impressao de Duplicatas                                           *
;*******************************************************************************

 Print File ARQIMP chr(27)+chr(67)+chr(33) ;Imprime 33 Linhas por pagina
 Print File ARQIMP CI_10CPP
 Print File ARQIMP CI_6LPP

 Print File ARQIMP "+------------------------------------------------------------------------------+"+"\n"
 Print File ARQIMP "|                   N O T A    P R O M I S S O R I A                           |"+"\n"
 Print File ARQIMP "|                   ================================                           |"+"\n"
 Print File ARQIMP "|                    Republica Federativa do Brasil                            |"+"\n"
 Print File ARQIMP "|                                                                              |"+"\n"

 Print File ARQIMP "| Numero: "+ Format("W6,AC",[Answer->Numero do Documento])
 If [Ordem do Documento]<>""
    Then Print File ARQIMP "/"+[Ordem do Documento]+Spaces(13)
    Else Print File ARQIMP Spaces(15)
 EndIf

 Print File ARQIMP COMPLETA("Vencimento: "+StrVal(Day([Data Vencimento]))+" de "+
                            RTrim(MesExt(Month([Data Vencimento])))+" de "+
                            Strval(Year([Data Vencimento])),48," ")+"|"+"\n"
 Print File ARQIMP "|                                                                              |"+"\n"

 Print File ARQIMP "|"+Spaces(30)+"Valor.....: "+LTrim(Format("W13.2,EIC,AR",[Valor Duplicata]))+Spaces(21)
 Print File ARQIMP Fill(" ",15-Len(LTrim(Format("W13.2,EIC,AR",[Valor Duplicata]))))+"|"+"\n"
 Print File ARQIMP "|                                                                              |"+"\n"

 Print File ARQIMP "| No dia "+
                   COMPLETA(StrVal(Day([Data Vencimento]))+" de "+
                   RTrim(MesExt(Month([Data Vencimento])))+" de "+
                   Strval(Year([Data Vencimento]))+
                   ", pagarei pela presente NOTA PROMISSORIA a ",70," ")+"|"+"\n"
 Print File ARQIMP "| "+Format("W30,AL",EMPRESA)+Spaces(47)+"|"+"\n"
 Print File ARQIMP "| Inscrita no CNPJ: "+Format("W18,AL",CNPJEMP)+" ou sua ordem "
 Print File ARQIMP "a quantia de "+Spaces(14)+"|"+"\n"

 ESCEXT([Valor Duplicata])
 Print File ARQIMP "|                                                                              |"+"\n"

 Print File ARQIMP "|"+Spaces(04) + SubStr(EXTENSO,001,60) +Spaces(14)+"|" +"\n"
 Print File ARQIMP "|"+Spaces(04) + SubStr(EXTENSO,061,60) +Spaces(14)+"|" +"\n"
 Print File ARQIMP "|"+Spaces(04) + SubStr(EXTENSO,122,60) +Spaces(14)+"|" +"\n"

 Print File ARQIMP "|                                                                              |"+"\n"

 Print File ARQIMP "| Emitente: "+[Answer->Codigo]+" - "+ Format("W40,AL",[Answer->Razao Social Fatura])+Spaces(20)+"|"+"\n"
 Print File ARQIMP "| CNPJ/CPF: "+Format("W18,AL",[Answer->CGC Fatura])+Spaces(48)+" |"+"\n"
 Print File ARQIMP "| Endereco: "+Format("W38,AL",[Answer->Endereco Fatura])
 Print File ARQIMP "Bairro: "+Format("W20,AL",[Answer->Bairro Fatura])+" |"+"\n"
 Print File ARQIMP "| Cidade..: "+[Answer->Cep Fatura]+" - "+Format("W20,AL",[Answer->Cidade Fatura])+Spaces(5)
 Print File ARQIMP "    Uf: "+[Answer->UF Fatura]+Spaces(18) + " |"+"\n"
 Print File ARQIMP "|                                                                              |"+"\n"
 Print File ARQIMP "| "+COMPLETA(CIDEMP+", "+StrVal(Day([Answer->Data de Emissao]))+" de "+
                        RTrim(MesExt(Month([Answer->Data de Emissao])))+" de "+
                        Strval(Year([Answer->Data de Emissao])),47," ")
 Print File ARQIMP "___________________________"+Spaces(03)+"|"+"\n"
 Print File ARQIMP "|                                                                              |"+"\n"
 Print File ARQIMP "+------------------------------------------------------------------------------+"+"\n"

 Print File ARQIMP CI_10CPP
 Print File ARQIMP CI_6LPP+"\f"

 Print File ARQIMP chr(27)+chr(67)+chr(66) ;Imprime 66 Linhas por pagina

