Carlos,
Gracias por tu contribuci贸n. Copiemos aqui los ficheros pues mediafire se cancela despues de un tiempo,
BARCODEW.CH
#ifndef _BARCODE_
#define _BARCODE_
#translate @ <nRow>, <nCol> CODE128W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ MODE <cMode>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Nil, <cMode>, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, Nil, Nil, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"CODE128", <.design.>, .T. )
#translate @ <nRow>, <nCol> CM_CODE128W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ MODE <cMode>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Nil, <cMode>, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, Nil, Nil, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"CODE128", <.design.>, .F. )
#translate @ <nRow>, <nCol> CODE3_9W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lCheck:CHECK> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<.lCheck.>, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, Nil, Nil, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"CODE3_9", <.design.>, .T. )
#translate @ <nRow>, <nCol> CM_CODE3_9W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lCheck:CHECK> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<.lCheck.>, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, Nil, Nil, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"CODE3_9", <.design.>, .F. )
#translate @ <nRow>, <nCol> EAN13W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lBanner:BANNER> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ FONT <cFont> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Nil, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, <.lBanner.>, <cFont>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"EAN13", <.design.>, .T. )
#translate @ <nRow>, <nCol> CM_EAN13W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lBanner:BANNER> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ FONT <cFont> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Nil, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, <.lBanner.>, <cFont>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"EAN13", <.design.>, .F. )
#translate @ <nRow>, <nCol> UPCAW 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lBanner:BANNER> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ FONT <cFont> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Nil, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, <.lBanner.>, <cFont>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"UPCA", <.design.>, .T. )
#translate @ <nRow>, <nCol> CM_UPCAW 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lBanner:BANNER> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ FONT <cFont> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Nil, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, <.lBanner.>, <cFont>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"UPCA", <.design.>, .F. )
#translate @ <nRow>, <nCol> EAN8W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lBanner:BANNER> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ FONT <cFont> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Nil, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, <.lBanner.>, <cFont>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"EAN8", <.design.>, .T. )
#translate @ <nRow>, <nCol> CM_EAN8W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lBanner:BANNER> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ FONT <cFont> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Nil, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, <.lBanner.>, <cFont>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"EAN8", <.design.>, .F. )
#translate @ <nRow>, <nCol> SUP5W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lBanner:BANNER> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ FONT <cFont> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lBanner:BANNER> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ FONT <cFont> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Nil, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, <.lBanner.>, <cFont>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"SUP5", <.design.>, .T. )
#translate @ <nRow>, <nCol> CM_SUP5W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lBanner:BANNER> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ FONT <cFont> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lBanner:BANNER> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ FONT <cFont> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Nil, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, <.lBanner.>, <cFont>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"SUP5", <.design.>, .F. )
#translate @ <nRow>, <nCol> CODABARW 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Nil, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, Nil, Nil, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"CODABAR", <.design.>, .T. )
#translate @ <nRow>, <nCol> CM_CODABARW 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽Nil, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, Nil, Nil, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"CODABAR", <.design.>, .F. )
#translate @ <nRow>, <nCol> INT25W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lCheck:CHECK> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<.lCheck.>, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, Nil, Nil, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"INT25", <.design.>, .T. )
#translate @ <nRow>, <nCol> CM_INT25W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lCheck:CHECK> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<.lCheck.>, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, Nil, Nil, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"INT25", <.design.>, .F. )
#translate @ <nRow>, <nCol> IND25W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lCheck:CHECK> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<.lCheck.>, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, Nil, Nil, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"IND25", <.design.>, .T. )
#translate @ <nRow>, <nCol> CM_IND25W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lCheck:CHECK> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<.lCheck.>, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, Nil, Nil, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"IND25", <.design.>, .F. )
#translate @ <nRow>, <nCol> MAT25W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lCheck:CHECK> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<.lCheck.>, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, Nil, Nil, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"MAT25", <.design.>, .T. )
#translate @ <nRow>, <nCol> CM_MAT25W 聽<cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lCheck:CHECK> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design:DESIGN>] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<.lCheck.>, Nil, <nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽<nWidth>, <nSize>, Nil, Nil, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽"MAT25", <.design.>, .F. )
#ENDIF
/* ***************************************************************************************** */
#translate @ <nRow>, <nCol> BARCODEW [ <oBarCodeW> PROMPT ] <cCode> ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <predef: CODE128, CODE3_9, EAN13, UPCA, EAN8, SUP5, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽CODABAR, INT25, IND25, MAT25> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ OF <oWnd>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lCheck:CHECK> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ MODE <cMode>] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ COLOR <nColor> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lVert:VERTICAL> ];
聽 聽 聽 聽 聽 聽 聽 聽 [ WIDTH <nWidth> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ SIZE <nSize> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lBanner:BANNER> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ FONT <cFont> ] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <design: DESIGN > 聽] ;
聽 聽 聽 聽 聽 聽 聽 聽 [ <lPixel: PIXEL, PIXELS > ] ;
聽 聽 聽 聽 聽 聽 聽 聽 => ;
聽 聽 聽 聽 <oBarCodeW> := TBarCodeW():New( <nRow>, <nCol>, <cCode>, <oWnd>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 <.lCheck.>, <cMode>,<nColor>, .not. <.lVert.>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 <nWidth>, <nSize>, <.lBanner.>, <cFont>, ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 Upper(<(predef)>), <.design.>, <.lPixel.> )
BANNERW.PRG
// labels on barcodes
#include "fivewin.ch"
FUNCTION barlen13W( cCode, oWnd, nRow, nCol, Color, lHorz, nWidth, nLen, cFont)
聽 聽 Local oFont, nLenChar, l , Control, k, n, nWidthChar
Local WndhDC := 0
聽 聽 default lHorz := .t.
聽 聽 default nWidth := 0.025 // 1/3 M/mm
聽 聽 default nLen := 1.5 // Cmm.
聽 聽 default cFont := 'arial'
聽 聽 default Color := CLR_BLACK
WndhDC := oWnd:GetDC()
聽 聽 k:=left(alltrim(cCode)+'000000000000',12) // padding with '0'
聽 聽 // calculo del digito de control
聽 聽 聽k := k + EAN13_CHECK( k ) 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 // Chaeck Digit en EAN13
聽 聽 If !lHorz
聽 聽 聽 聽 //nWidth := round ( nWidth * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
聽 聽 聽 聽 nWidth := ROUND( nCm2Pixels( WndhDC, nWidth, .T. ), 0 )
聽 聽 else
聽 聽 聽 聽 //nWidth := round 聽( nWidth * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
聽 聽 聽 聽 nWidth := ROUND( nCm2Pixels( WndhDC, nWidth, .F. ), 0 )
聽 聽 EndIf
聽 聽 // Len of bar
聽 聽 If lHorz
聽 聽 聽 聽 //nLen := round ( nLen * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
聽 聽 聽 聽 nLen := ROUND( nCm2Pixels( WndhDC, nLen, .T. ), 0 )
聽 聽 Else
聽 聽 聽 聽 //nLen := round 聽( nLen * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
聽 聽 聽 聽 nLen := ROUND( nCm2Pixels( WndhDC, nLen, .F. ), 0 )
聽 聽 EndIf
/*
聽 聽 聽 聽 nLenChar := nWidth*10
聽 聽 聽 聽 nWidthChar:= nLen*0.3
聽 聽 聽 聽 while .t.
聽 聽 聽 聽 聽 聽 define font oFont name cFont of oPrInt size nLenChar , nLenChar/2 ;
聽 聽 聽 聽 聽 聽 聽 聽 nescapement if(lHorz,0,13500)
聽 聽 聽 聽 聽 聽 if oPrint:GetTextWidth( '888888', oFont )<=42*nWidth
聽 聽 聽 聽 聽 聽 聽 聽 // alert(if(lHorz,'H:','V:')+str(nWidth*7)+str(nLenChar/(nWidth*7)))
聽 聽 聽 聽 聽 聽 聽 聽 while .t.
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 define font oFont name cFont of oPrInt size nLenChar , nWidthChar ;
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 nescapement if(lHorz,0,13500)
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 if oPrint:GetTextHeigth( '8', oFont )<=0.2*nLen
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 alert(if(lHorz,'H:','V:')+str(nLen*0.2)+str(nWidthChar/(nLen*0.2)))
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 exit
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 else
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 nWidthChar-=0.2
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 end
聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 oFont:end()
聽 聽 聽 聽 聽 聽 聽 聽 enddo
聽 聽 聽 聽 聽 聽 聽 聽 exit
聽 聽 聽 聽 聽 聽 else
聽 聽 聽 聽 聽 聽 聽 聽 nLenChar-=1
聽 聽 聽 聽 聽 聽 end
聽 聽 聽 聽 聽 聽 oFont:end()
聽 聽 聽 聽 end
聽* 聽 nWidt -> 0.8
*/
聽 聽 //DEFINE FONT oFont NAME cFont OF oPrInt SIZE nWidth * 5.6, nLen * 0.04 ;
聽 聽 // 聽 聽 聽 聽 聽 聽NESCAPEMENT If( lHorz, 0, 13500)
聽 聽 DEFINE FONT oFont NAME cFont SIZE nWidth * 5.6, nLen * 0.24 ;
聽 聽 聽 聽 聽 聽 聽 聽 NESCAPEMENT If( lHorz, 0, 13500)
聽 聽 If lHorz
聽 聽 聽 聽 //oPrint:say( nRow + nLen * 0.9, nCol - nWidth * 8, Left(k, 1), oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nLen * 0.9, nCol - nWidth * 8, Left(k, 1), Color, Nil, oFont, .T., Nil, Nil )
聽 聽 聽 聽 //oPrint:say( nRow + nLen * 0.9, nCol + nWidth * 3, Substr(k, 2, 6), oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nLen * 0.9, nCol + nWidth * 3, SubStr(k, 2, 6), Color, Nil, oFont, .T., Nil, Nil )
聽 聽 聽 聽 //oPrint:say( nRow + nLen * 0.9, nCol + nWidth * 50, Substr(k, 8, 6), oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nLen * 0.9, nCol + nWidth * 50, SubStr(k, 8, 6), Color, Nil, oFont, .T., Nil, Nil )
聽 聽 Else
聽 聽 聽 聽 //oPrint:say( nRow - nWidth * 8, nCol + nLen * 0.1, Left(k, 1), oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow - nWidth * 8, nCol + nLen * 0.1, Left(k, 1), Color, Nil, oFont, .T., Nil, Nil )
聽 聽 聽 聽 //oPrint:say( nRow + nWidth * 3, nCol + nLen * 0.1, substr(k, 2, 6), oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nWidth * 3, nCol + nLen * 0.1, SubStr(k, 2, 6), Color, Nil, oFont, .T., Nil, Nil )
聽 聽 聽 聽 //oPrint:say( nRow + nWidth * 50, nCol + nLen * 0.1, Substr(k, 8, 6), oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nWidth * 50, nCol + nLen * 0.1, SubStr(k, 8, 6), Color, Nil, oFont, .T., Nil, Nil )
聽 聽 EndIf
聽 聽 RELEASE oFont
oWnd:ReleaseDC()
RETURN Nil
FUNCTION barlenW( cCode, nDigs, oWnd, nRow, nCol, Color, lHorz, nWidth, nLen, cFont)
聽 聽 Local oFont, nLenChar, l ,Control,k,s1,s2,n, Izda, dCha
Local WndhDC := 0
聽 聽 DEFAULT lHorz := .t.
聽 聽 DEFAULT nWidth := 0.025 // 1/3 M/mm
聽 聽 DEFAULT nLen := 1.5 // Cmm.
聽 聽 DEFAULT cFont := 'arial'
聽 聽 DEFAULT Color := CLR_BLACK
聽 聽 DEFAULT nDigs := 11
WndhDC := oWnd:GetDC()
聽 聽 // calculo del digito de control
聽 聽 k := Left(Alltrim(cCode) + '000000000000', nDigs) // padding with '0'
聽 聽 // calculo del digito de control
聽 聽 k = k + Upc_CHECK(cCode, nDigs) 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 // cCode,nLen
聽 聽 nDigs++
聽 聽 dcha := Right(K, nDigs / 2)
聽 聽 izda := Left(k, nDigs / 2)
聽 聽 If !lHorz
聽 聽 聽 聽 //nWidth :=round ( nWidth * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
聽 聽 聽 聽 nWidth := ROUND( nCm2Pixels( WndhDC, nWidth, .T. ), 0 )
聽 聽 Else
聽 聽 聽 聽 //nWidth :=round 聽( nWidth * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
聽 聽 聽 聽 nWidth := ROUND( nCm2Pixels( WndhDC, nWidth, .F. ), 0 )
聽 聽 EndIf
聽 聽 // Len of bar
聽 聽 If lHorz
聽 聽 聽 聽 //nLen :=round ( nLen * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
聽 聽 聽 聽 nLen := ROUND( nCm2Pixels( WndhDC, nLen, .T. ), 0 )
聽 聽 Else
聽 聽 聽 聽 //nLen :=round 聽( nLen * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
聽 聽 聽 聽 nLen := ROUND( nCm2Pixels( WndhDC, nLen, .F. ), 0 )
聽 聽 EndIf
聽 聽 //define font oFont name cFont of oPrInt size nWidth*5.6 , nLen*0.04 ;
聽 聽 // 聽 聽 聽 聽 聽 聽nescapement if(lHorz,0,13500)
聽 聽 DEFINE FONT oFont NAME cFont SIZE nWidth * 5.6 , nLen * 0.24 ;
聽 聽 聽 聽 聽 聽 聽 聽 NESCAPEMENT If(lHorz, 0, 13500)
聽 聽 // fisrt letter
聽 聽 If lHorz
聽 聽 聽 聽 //oPrint:say( nRow + nLen * 0.9, nCol + nWidth * 3, Izda, oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nLen * 0.9, nCol + nWidth * 3, Izda, Color, Nil, oFont, .T., Nil, Nil )
聽 聽 聽 聽 //oPrint:say( nRow + nLen * 0.9, nCol + nWidth * ( int(nDigs) / 2 * 7 + 8), dcha, oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nLen * 0.9, nCol + nWidth * ( int(nDigs) / 2 * 7 + 8), dcha, Color, Nil, oFont, .T., Nil, Nil )
聽 聽 Else
聽 聽 聽 聽 //oPrint:say( nRow + nWidth * 3, nCol + nLen * 0.1, izda, oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nWidth * 3, nCol + nLen * 0.1, izda, Color, Nil, oFont, .T., Nil, Nil )
聽 聽 聽 聽 //oPrint:say( nRow + nWidth * (nDigs / 2 + 8), nCol + nLen * 0.1, dcha, oFont, , Color )
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nWidth * (nDigs / 2 + 8), nCol + nLen * 0.1, dcha, Color, Nil, oFont, .T., Nil, Nil )
聽 聽 EndIf
聽 聽 RELEASE oFont
oWnd:ReleaseDC()
return nil
FUNCTION ban5W( cCode, oWnd, nRow, nCol, Color, lHorz, nWidth, nLen, cFont)
聽 聽 Local oFont, nLenChar, k,n, oPen
Local WndhDC := 0
聽 聽 DEFAULT lHorz := .t.
聽 聽 DEFAULT nWidth := 0.025 // 1/3 M/mm
聽 聽 DEFAULT nLen := 1.5 // Cmm.
聽 聽 DEFAULT cFont := 'arial'
聽 聽 DEFAULT Color := CLR_BLACK
WndhDC := oWnd:GetDC()
聽 聽 ccode := Left(Alltrim(cCode) + '000000000000', 5) // padding with '0'
聽 聽 If !lHorz
聽 聽 聽 聽 //nWidth := round ( nWidth * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
聽 聽 聽 聽 nWidth := ROUND( nCm2Pixels( WndhDC, nWidth, .T. ), 0 )
聽 聽 Else
聽 聽 聽 聽//nWidth := round 聽( nWidth * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
聽 聽 聽 聽nWidth := ROUND( nCm2Pixels( WndhDC, nWidth, .F. ), 0 )
聽 聽 EndIf
聽 聽 // Len of bar
聽 聽 If lHorz
聽 聽 聽 聽 //nLen :=round ( nLen * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
聽 聽 聽 聽 nLen := ROUND( nCm2Pixels( WndhDC, nLen, .T. ), 0 )
聽 聽 Else
聽 聽 聽 聽 //nLen :=round 聽( nLen * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
聽 聽 聽 聽 nLen := ROUND( nCm2Pixels( WndhDC, nLen, .F. ), 0 )
聽 聽 EndIf
聽 聽 //define font oFont name cFont of oPrInt size nWidth*5.6 , nLen*0.04 ;
聽 聽 // 聽 聽 聽 聽 聽 聽nescapement if(lHorz,0,13500)
聽 聽 DEFINE FONT oFont NAME cFont SIZE nWidth * 5.6 , nLen * 0.24 ;
聽 聽 聽 聽 聽 聽 聽 聽 NESCAPEMENT If( lHorz, 0, 13500)
聽 聽 //define pen oPen color CLR_WHITE of oPrint
聽 聽 DEFINE PEN oPen COLOR CLR_WHITE
聽 聽 k := ''
聽 聽 FOR n := 1 to 4
聽 聽 聽 聽 k += substr( cCode, n, 1) + ' '
聽 聽 ENDFOR
聽 聽 cCode := k + right( cCOde, 1)
聽 聽 //Box( nTop, nLeft, nBottom, nRight )
聽 聽 If lHorz
聽 聽 聽 聽 //oPrint:box(nrow,ncol,nrow+nLen*.3,nCol+48*nWidth,oPen)
聽 聽 聽 聽 Rectangle( WndhDC, nrow, ncol, nrow + nLen * .3, nCol + 48 * nWidth, oPen:hPen )
聽 聽 Else
聽 聽 聽 聽 //oPrint:box(nrow,ncol,nrow+41*nWidth,nCol+nLen*.3+48*nWidth,oPen)
聽 聽 聽 聽 Rectangle( WndhDC, nrow, ncol, nrow + 41 * nWidth, nCol + nLen * .3 + 48 * nWidth, oPen:hPen )
聽 聽 EndIf
聽 聽 //oPrint:say(nRow,nCol,cCode,oFont,,Color)
聽 聽 oWnd:Say( nRow, nCol, cCode, Color, Nil, oFont, .T., Nil, Nil )
聽 聽 RELEASE oFont
聽 聽 RELEASE oPen
oWnd:ReleaseDC()
RETURN Nil
FUNCTION UPCA_barlenW( cCode, oWnd, nRow, nCol, Color, lHorz, nWidth, nLen, cFont)
聽 聽 Local oFont, nLenChar, l ,Control,k,n, Izda, dCha, nDigs:=11,oFont2
Local WndhDC := 0
聽 聽 DEFAULT lHorz := .t.
聽 聽 DEFAULT nWidth := 0.025 // 1/3 M/mm
聽 聽 DEFAULT nLen := 1.5 // Cmm.
聽 聽 DEFAULT cFont := 'arial'
聽 聽 DEFAULT Color := CLR_BLACK
WndhDC := oWnd:GetDC()
聽 聽 // calculo del digito de control
聽 聽 k := Left(Alltrim(cCode) + '000000000000', nDigs) // padding with '0'
聽 聽 // calculo del digito de control
聽 聽 k = k + Upc_CHECK( cCode, nDigs) 聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 // cCode,nLen
聽 聽 nDigs++
聽 聽 dcha := Right(K, nDigs / 2)
聽 聽 izda := Left(k, nDigs / 2)
聽 聽 If !lHorz
聽 聽 聽 聽 //nWidth :=round ( nWidth * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
聽 聽 聽 聽 nWidth := ROUND( nCm2Pixels( WndhDC, nWidth, .T. ), 0 )
聽 聽 Else
聽 聽 聽 聽 //nWidth :=round 聽( nWidth * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
聽 聽 聽 聽 nWidth := ROUND( nCm2Pixels( WndhDC, nWidth, .F. ), 0 )
聽 聽 EndIf
聽 聽 // Len of bar
聽 聽 IF lHorz
聽 聽 聽 聽 //nLen :=round ( nLen * 10 * oPrint:nVertRes() / oPrint:nVertSize() ,0 )
聽 聽 聽 聽 nLen := ROUND( nCm2Pixels( WndhDC, nLen, .T. ), 0 )
聽 聽 Else
聽 聽 聽 聽 //nLen :=round 聽( nLen * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 )
聽 聽 聽 聽 nLen := ROUND( nCm2Pixels( WndhDC, nLen, .F. ), 0 )
聽 聽 EndIf
聽 聽 //define font oFont name cFont of oPrInt size nWidth*5.6 , nLen*0.04 ;
聽 聽 // 聽 聽 聽 聽 聽 聽nescapement if(lHorz,0,13500)
聽 聽 //define font oFont2 name cFont of oPrInt size nWidth*5.6 , nLen*0.025 ;
聽 聽 // 聽 聽 聽 聽 聽 聽nescapement if(lHorz,0,13500)
聽 聽 DEFINE FONT oFont NAME cFont SIZE nWidth * 5.6 , nLen * 0.24 ;
聽 聽 聽 聽 聽 聽 聽 聽 NESCAPEMENT If(lHorz, 0, 13500)
聽 聽 DEFINE FONT oFont2 NAME cFont SIZE nWidth * 5.6 , nLen * 0.15 ;
聽 聽 聽 聽 聽 聽 聽 聽 NESCAPEMENT If(lHorz, 0, 13500)
聽 聽 // fisrt letter
聽 聽 If lHorz
聽 聽 聽 聽 //oPrint:say( nRow + nLen * 0.9, nCol - nWidth * 8, left(k, 1), oFont2, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nLen * 0.9, nCol - nWidth * 8, Left(k, 1), Color, Nil, oFont2, .T., Nil, Nil )
聽 聽 聽 聽 //oPrint:say( nRow + nLen * 0.9, nCol + nWidth * 10, right(Izda, 5), oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nLen * 0.9, nCol + nWidth * 10, Right(Izda, 5), Color, Nil, oFont, .T., Nil, Nil )
聽 聽 聽 聽 //oPrint:say( nRow + nLen * 0.9, nCol + nWidth * 50, left( dcha, 5), oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nLen * 0.9, nCol + nWidth * 50, Left( Dcha, 5), Color, Nil, oFont, .T., Nil, Nil )
聽 聽 聽 聽 //oPrint:say( nRow + nLen * 0.9, nCol + nWidth * 95, right( k, 1), oFont2, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nLen * 0.9, nCol + nWidth * 95, Right( k, 1), Color, Nil, oFont2, .T., Nil, Nil )
聽 聽 Else
聽 聽 聽 聽 //oPrint:say( nRow - nWidth * 8, nCol + nLen * 0.1, left(k, 1),oFont2,,Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow - nWidth * 8, nCol + nLen * 0.1, Left(k, 1), Color, Nil, oFont2, .T., Nil, Nil )
聽 聽 聽 聽 //oPrint:say( nRow + nWidth * 10, nCol + nLen * 0.1, right( izda, 5), oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nWidth * 10, nCol + nLen * 0.1, Right( Izda, 5), Color, Nil, oFont, .T., Nil, Nil )
聽 聽 聽 聽 //oPrint:say( nRow + nWidth * 50, nCol + nLen * 0.1, left( dcha, 5), oFont, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nWidth * 50, nCol + nLen * 0.1, Left( Dcha, 5), Color, Nil, oFont, .T., Nil, Nil )
聽 聽 聽 聽 //oPrint:say( nRow + nWidth * 95, nCol + nLen * 0.1, right( k, 1), oFont2, , Color)
聽 聽 聽 聽 聽 聽 oWnd:Say( nRow + nWidth * 95, nCol + nLen * 0.1, Right( k, 1), Color, Nil, oFont2, .T., Nil, Nil )
聽 聽 EndIf
聽 聽 RELEASE oFont
聽 聽 RELEASE oFont2
oWnd:ReleaseDC()
RETURN Nil
//
BARLIBW.PRG
/* 聽Para visualizar los c贸digos de barra por pantalla.
聽 聽 Basado en el desarrollo de Cayetano (Barlib).
聽 聽 C.Gelabert 28/4/09
聽 聽 ============================================== */
// funciones de llamadas de barlib
// chequean las posibles concordancias de datos
// y dan los errores
#include 'fivewin.ch'
// CODE 128
/*
聽 聽 Code 128:
聽 聽 Admite los 128 caracteres 0 - 127
聽 聽 si s垄lo son n拢meros se usa un modelo comprimido, llamado
聽 聽 modo C
聽 聽 Si hay caracteres < 32 se usa el m垄do A
聽 聽 Si hay caracteres en minusculas se usa el modo B ( modo por defecto)
聽 聽 Los modos se mezclan
聽 聽 Sintaxis :
聽 聽 code128W(nRow,nCol,cCode,oWnd,[cMode],[Color],
聽 聽 聽 聽 聽 聽[lOrientacion],[nAncho],[nAlto])
聽 聽 nRow, nCol en Pixels
聽 聽 nAncho,nAlto en Cm
*/
Function Code128W( nRow, nCol, cCode, oWnd, cMode, Color, lHorz, nWidth, nHeigth )
聽 聽 // test de parametros
聽 聽 // por implementar
聽 聽 go_codeW( _code128(cCode,cMode), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth )
return nil
Function c_Code128W( nRow, nCol, cCode, oWnd, cMode, Color, lHorz, nWidth, nHeigth )
聽 聽 uCm2Pixels( oWnd:GetDC(), @nRow, @nCol )
聽 聽 oWnd:ReleaseDC()
return Code128W( nRow, nCol, cCode, oWnd, cMode, Color, lHorz, nWidth, nHeigth )
Function Code3_9W( nRow, nCol, cCode, oWnd, lCheck, Color, lHorz, nWidth, nHeigth )
聽 聽 // test de parametros
聽 聽 // por implementar
聽 聽 go_codeW( _code3_9(cCode,lCheck), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth )
return nil
Function c_Code3_9W( nRow, nCol, cCode, oWnd, lCheck, Color, lHorz, nWidth, nHeigth)
聽 聽 uCm2Pixels( oWnd:GetDC(), @nRow, @nCol )
聽 聽 oWnd:ReleaseDC()
return Code3_9W( nRow, nCol, cCode, oWnd, lCheck, Color, lHorz, nWidth, nHeigth )
Function ean13W( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth, lBanner, cFont )
聽 聽 local nLen
聽 聽 // test de parametros
聽 聽 // por implementar
聽 聽 default nHeigth := 1.5
聽 聽 default lBanner:=.f.
聽 聽 // desplazamiento...
聽 聽 if lHorz
聽 聽 聽 聽 go_codeW( _ean13(cCode), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth * 0.90 )
聽 聽 else
聽 聽 聽 聽 //nLen :=round 聽( nHeigth * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 ) * 0.1
聽 聽 聽 聽 nLen := round 聽( nCm2Pixels( oWnd:GetDC(), nLen, .F. ), 0 ) * 0.1
聽 聽 聽 聽 oWnd:ReleaseDC()
聽 聽 聽 聽// 10% espacios
聽 聽 聽 聽 聽 聽 go_codeW( _ean13(cCode), nRow, nCol + nLen, oWnd, lHorz, Color, nWidth, nHeigth * 0.90 )
聽 聽 end
聽 聽 go_codeW( _ean13Bl(), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth )
聽 聽 if lBanner
聽 聽 聽 聽 barlen13W( cCode, oWnd, nRow, nCol, Color, lHorz, nWidth, nHeigth, cFont )
聽 聽 end
return nil
Function c_ean13W( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth )
聽 聽 uCm2Pixels( oWnd:GetDC(), @nRow, @nCol )
聽 聽 oWnd:ReleaseDC()
return ean13W( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth )
Function UPCAW( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth, lBanner, cFont )
聽 聽 local nLen
聽 聽 // test de parametros
聽 聽 // por implementar
聽 聽 default nHeigth := 1.5
聽 聽 default lBanner:=.f.
聽 聽 if lHorz
聽 聽 聽 聽 go_codeW( _UPC(cCode), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth * 0.90 )
聽 聽 else
聽 聽 聽 聽 //nLen := round 聽( nHeigth * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 ) * 0.1
聽 聽 聽 聽 nLen := ROUND( nCm2Pixels( oWnd:GetDC(), nLen, .F. ), 0 ) * 0.1
聽 聽 聽 聽 oWnd:ReleaseDC()
聽 聽 聽 聽// 10% espacios
聽 聽 聽 聽 聽 聽 go_codeW( _UPC(cCode), nRow, nCol + nLen, oWnd, lHorz, Color, nWidth, nHeigth * 0.90 )
聽 聽 end
聽 聽 go_codeW( _UPCABl(cCode), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth )
聽 聽 if lBanner
聽 聽 聽 聽 UPCA_barlenW( cCode, oWnd, nRow, nCol, Color, lHorz, nWidth, nHeigth, cFont )
聽 聽 end
return nil
Function c_UPCAW( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth )
聽 聽 uCm2Pixels( oWnd:GetDC(), @nRow, @nCol )
聽 聽 oWnd:ReleaseDC()
return UPCAW( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth )
Function ean8W( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth, lBanner, cFont )
聽 聽 local nLen
聽 聽 // test de parametros
聽 聽 // por implementar
聽 聽 default nHeigth := 1.5
聽 聽 default lBanner:=.f.
聽 聽 if lHorz
聽 聽 聽 聽 go_codeW( _UPC(cCode,7), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth * 0.90 )
聽 聽 else
聽 聽 聽 聽 //nLen :=round 聽( nHeigth * 10 * oPrint:nHorzRes() / oPrint:nHorzSize(), 0 ) * 0.1
聽 聽 聽 聽 nLen := ROUND( nCm2Pixels( oWnd:GetDC(), nLen, .F. ), 0 ) * 0.1
聽 聽 聽 聽 oWnd:ReleaseDC()
聽 聽 聽 聽// 10% espacios
聽 聽 聽 聽 聽 聽 go_codeW( _UPC(cCode,7), nRow, nCol + nLen, oWnd, lHorz, Color, nWidth, nHeigth * 0.90 )
聽 聽 end
聽 聽 go_codeW( _ean13Bl(8), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth )
聽 聽 if lBanner
聽 聽 聽 聽 barlenW( cCode, 7, oWnd, nRow, nCol, Color, lHorz, nWidth, nHeigth, cFont )
聽 聽 end
return nil
Function c_ean8W( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth )
聽 聽 uCm2Pixels( oWnd:GetDC(), @nRow, @nCol )
聽 聽 oWnd:ReleaseDC()
return ean8W( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth )
Function sup5W( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth, lBanner, cFont )
聽 聽 // test de parametros
聽 聽 // por implementar
聽 聽 go_codeW( _sup5(cCode), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth )
聽 聽 if lBANNER
聽 聽 聽 聽 ban5W( cCode, oWnd, nRow, nCol, Color, lHorz, nWidth, nhEIGTH, cFont )
聽 聽 end
return nil
Function c_Sup5W( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth, lBanner, cFont )
聽 聽 uCm2Pixels( oWnd:GetDC(), @nRow, @nCol )
聽 聽 oWnd:ReleaseDC()
return sup5W( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth, lBanner, cFont )
Function CodabarW( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth )
聽 聽 // test de parametros
聽 聽 // por implementar
聽 聽 go_codeW( _Codabar(cCode), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth )
return nil
Function c_CodabarW( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth )
聽 聽 uCm2Pixels( oWnd:GetDC(), @nRow, @nCol )
聽 聽 oWnd:ReleaseDC()
return CodabarW( nRow, nCol, cCode, oWnd, Color, lHorz, nWidth, nHeigth )
Function int25W( nRow, nCol, cCode, oWnd, lCheck, Color, lHorz, nWidth, nHeigth )
聽 聽 // test de parametros
聽 聽 // por implementar
聽 聽 go_codeW( _int25(cCode,lCheck), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth )
return nil
Function c_int25W( nRow, nCol, cCode, oWnd, lCheck, Color, lHorz, nWidth, nHeigth )
聽 聽 uCm2Pixels( oWnd:GetDC(), @nRow, @nCol )
聽 聽 oWnd:ReleaseDC()
return int25W( nRow, nCol, cCode, oWnd, lCheck, Color, lHorz, nWidth, nHeigth )
Function ind25W( nRow, nCol, cCode, oWnd, lCheck, Color, lHorz, nWidth, nHeigth )
聽 聽 // test de parametros
聽 聽 // por implementar
聽 聽 go_codeW( _ind25(cCode,lCheck), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth )
return nil
Function c_ind25W( nRow, nCol, cCode, oWnd, lCheck, Color, lHorz, nWidth, nHeigth )
聽 聽 uCm2Pixels( oWnd:GetDC(), @nRow, @nCol )
聽 聽 oWnd:ReleaseDC()
return ind25W( nRow, nCol, cCode, oWnd, lCheck, Color, lHorz, nWidth, nHeigth )
Function mat25W( nRow, nCol, cCode, oWnd, lCheck, Color, lHorz, nWidth, nHeigth )
聽 聽 // test de parametros
聽 聽 // por implementar
聽 聽 go_codeW( _mat25(cCode,lCheck), nRow, nCol, oWnd, lHorz, Color, nWidth, nHeigth )
return nil
Function c_mat25W( nRow, nCol, cCode, oWnd, lCheck, Color, lHorz, nWidth, nHeigth )
聽 聽 uCm2Pixels( oWnd:GetDC(), @nRow, @nCol )
聽 聽 oWnd:ReleaseDC()
return mat25W( nRow, nCol, cCode, oWnd, lCheck, Color, lHorz, nWidth, nHeigth )