Jump to content
Fivewin Brasil

Exemplo em Harbour Boleto


jfaguiar

Recommended Posts

Blz João, mas a classe que eu tinha te passado já está com o novo leiaute onde cedente é trocado por benificiário, sacado por pagador.

Novas regras da central dos banqueiros.

[]´s

Rogério, com a sua classe, não está aparecendo a BitMap, veja se o resto, está correto?

FAqWuE9.png

Obg. abs

Link to comment
Share on other sites

Pohhhhhaaaa Rogerio... kkkkkkkkkkkkkkkkkkkkkkkkk Tõ ficando bom na bagaça... kkkkkkkkkkkkkkkkkk



//*----------------------------------------------------------------------------*
//
// M., Ronaldo: Boleto Bancario em Harbour
//
// Method Draw_Image( nLeft, nTop, nWidth, nHeight ) Class MR_Boleto
//
//*----------------------------------------------------------------------------*
Method Draw_Image( nLeft, nTop, nWidth, nHeight ) Class MR_Boleto

//Local cFile := 'boletos\imagens\Logo_' + ::Banco________ + '.jpg'
Local cFile := 'resources\Logo_' + ::Banco________ + '.jpg'

Local oImage

IF hb_FileExists( cFile )

oImage := HPDF_LoadJPEGImageFromFile( :_Pdf, cFile )
HPDF_Page_DrawImage( ::oPage, oImage, nLeft, ( ::Page_Height__ - nTop ), nWidth, nHeight )

ELSE

::Draw_Text( nLeft, nTop - ( ::Page_Height__ * 0.005 ), ::Banco_Nome___, ::oFont_v______, Font_Large____ )

ENDIF

Return NIL


abs.


Link to comment
Share on other sites

Como eu não sabia deste detalhe, e não quero problemas com o autor, estou postando o arquivo de licenças.



/*
* MR-Tools source code:
*
* Copyright 2012 M., Ronaldo <ronmesq@gmail.com>
* https://github.com/MRonaldo/MR-Tools/downloads
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA
* or visit the site https://github.com/MRonaldo/MR-Tools/downloads
*
* As a special exception, the MR-Tool Project gives permission for
* additional uses of the text contained in its release.
*
* The exception is that, if you link the MR-Tools libraries with other
* files to produce an executable, this does not by itself cause the
* resulting executable to be covered by the GNU General Public License.
* Your use of that executable is in no way restricted on account of
* linking the MR-Tools library code into it.
*
* This exception does not however invalidate any other reasons why
* the executable file might be covered by the GNU General Public License.
*
* This exception applies only to the code released by the MR-Tools
* Project under the name MR-Tools. If you copy code from other
* MR-Tools Project or Free Software Foundation releases into a copy of
* MR-Tools, as the General Public License permits, the exception does
* not apply to the code that you add in this way. To avoid misleading
* anyone as to the status of such modified files, you must delete
* this exception notice from them.
*
* If you write modifications of your own for MR-Print, it is your choice
* whether to permit this exception to apply to your modifications.
* If you do not wish that, delete this exception notice.
*
*
*
* If you want to contribute in this project, just contact the author:
* Bug reports
* Ideas
* Requests
* Sources
* ...
*
*/


Abs

Link to comment
Share on other sites

// *----------------------------------------------------------------------*
// M., Ronaldo: Boleto Bancario em Harbour
//
// 2015-03-22 Compatibilizar código Harbour/xHarbour
//
// Method Draw_Zebra( nX, nY, nW, nZ ) Class MR_Boleto
// *----------------------------------------------------------------------*
Method Draw_Zebra( nX, nY, nW, nZ ) Class MR_Boleto

IF hb_zebra_GetError( ::hZebra_______ ) != 0
RETURN HB_ZEBRA_ERROR_INVALIDZEBRA
ENDIF

hb_zebra_draw( ::hZebra_______, {| x, y, w, z | HPDF_Page_Rectangle( ::oPage, x, y, w, z ) }, nX, nY, nW, nZ )

HPDF_Page_Fill( ::oPage )

Return NIL

***

Após alguem testar e confirmar o funcionamento, irei incluir no GitHub ( alem de outras atualizações )

A partir de 26/05/2015 será obrigatória a adoção do novo layout e da nova sistemática para emissão do boleto de cobrança, de modo a atender a convenção entre instituições financeiras do Sistema Financeiro Nacional realizada em 30/05/2014, circulares nº 3.598 de 06/06/2012 e nº 3.656 de 02/04/2013 BC ( Anexo o Môdelo Atual )

  • Beneficiário: o credor da dívida em cobrança. ( antigo cedente )
  • Pagador: o devedor da dívida em cobrança. ( antigo sacado )

MR_boleto.PDF

Link to comment
Share on other sites

Amigo,

Foi compilar, mas dá um monte de pau....

To meio lesado mesmo... vou trocar o fornecedor de "baseado", pois ele esta me mandando uns vencidos. kkkk

Márcio, quais erros te ocorrem, lembre-se que este exemplo, foi compilado com FWH13.06 e xHarbour última versão e BCC582, Para BCC55, tem que mudar CXB.BAT e CXB.LNK

Link to comment
Share on other sites

// *----------------------------------------------------------------------*

// M., Ronaldo: Boleto Bancario em Harbour

//

// 2015-03-22 Compatibilizar código Harbour/xHarbour

//

// Method Draw_Zebra( nX, nY, nW, nZ ) Class MR_Boleto

// *----------------------------------------------------------------------*

Method Draw_Zebra( nX, nY, nW, nZ ) Class MR_Boleto

IF hb_zebra_GetError( ::hZebra_______ ) != 0

RETURN HB_ZEBRA_ERROR_INVALIDZEBRA

ENDIF

hb_zebra_draw( ::hZebra_______, {| x, y, w, z | HPDF_Page_Rectangle( ::oPage, x, y, w, z ) }, nX, nY, nW, nZ )

HPDF_Page_Fill( ::oPage )

Return NIL

***

Após alguem testar e confirmar o funcionamento, irei incluir no GitHub ( alem de outras atualizações )

A partir de 26/05/2015 será obrigatória a adoção do novo layout e da nova sistemática para emissão do boleto de cobrança, de modo a atender a convenção entre instituições financeiras do Sistema Financeiro Nacional realizada em 30/05/2014, circulares nº 3.598 de 06/06/2012 e nº 3.656 de 02/04/2013 BC ( Anexo o Môdelo Atual )

  • Beneficiário: o credor da dívida em cobrança. ( antigo cedente )
  • Pagador: o devedor da dívida em cobrança. ( antigo sacado )

Que bacana, não sabia que o Autor do projeto, fazia parte do FiveWin Brasil. isto é excelente, pois, se pode perguntar diretamente a ele, sem se precisar se "matar". kkkkkkkkkkkkkkk, Abraços.

Link to comment
Share on other sites

  • 3 years later...
 

Bom amigos.

Alguém tem um exemplo em xharbour? Tentei compilar esse exemplo de  http://www.4shared.com/rar/9C6kVfDkce/MRBoleto.html? , mas dar erro. Alterei o projeto direitinho para a minha versão e paths, mas não foi.

 

 

Link to comment
Share on other sites

 

Márcio, quais erros te ocorrem, lembre-se que este exemplo, foi compilado com FWH13.06 e xHarbour última versão e BCC582, Para BCC55, tem que mudar CXB.BAT e CXB.LNK

Bom dia Kapiaba.

Também alterei os cxb  para a minha versão (fwh1307) mas não funcionou. Alguém tem alguma novidade por í?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...