FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Impresi贸n de C贸digos de Barra con TPrinter
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Impresi贸n de C贸digos de Barra con TPrinter
Posted: Thu Aug 03, 2017 08:43 PM

Prueba con Harbour

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Impresi贸n de C贸digos de Barra con TPrinter
Posted: Thu Aug 03, 2017 11:05 PM
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: Impresi贸n de C贸digos de Barra con TPrinter
Posted: Fri Aug 04, 2017 08:16 AM
karinha wrote:gracias Masters, no logro hacer funcionar.

Code (fw): Select all Collapse
C:\QRCODE3>Set hdir=C:\XHBBCC72 

C:\QRCODE3>Set bcdir=C:\bcc72 

C:\QRCODE3>Set fwhdir=C:\FwH1701 

C:\QRCODE3>rem @If Exist *.Obj      Del *.Obj 

C:\QRCODE3>If Exist GASFW.Exe Del GASFW.Exe 

C:\QRCODE3>REM -> Area dos Arquivos com Extens脝o *.PRG Gerados em FiveWin 

C:\QRCODE3>C:\XHBBCC72\bin\harbour QRCODE3       /m/n /iC:\FwH1701\include;C:\XHBBCC72\include;C:\bcc72\include /w0 /p   1>Erro.log 

C:\QRCODE3>C:\bcc72\bin\bcc32 -M -c -v -O2 -eQRCODE3.exe -IC:\XHBBCC72\include -IC:\bcc72\include QRCODE3.C       1>>Erro.log 

C:\QRCODE3>rem hdir=C:\XHBBCC72 

C:\QRCODE3>C:\bcc72\bin\bcc32 -M -c -v -O2 -IC:\XHBBCC72\include gdipfwh.cpp                                     1>>Erro.log 

C:\QRCODE3>If ErrorLevel 1 Type Erro.log   | More
xHarbour 1.2.3 Intl. (SimpLex) (Build 20170215)
Copyright 1999-2017, http://www.xharbour.org <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m -->
Compiling 'QRCODE3.prg' and generating preprocessed output to 'QRCODE3.ppo'...
Done.

Lines 172, Functions/Procedures 6, pCodes 525
Embarcadero C++ 7.20 for Win32 Copyright (c) 1993-2016 Embarcadero Technologies, Inc.
QRCODE3.c:
Embarcadero C++ 7.20 for Win32 Copyright (c) 1993-2016 Embarcadero Technologies, Inc.
GDIPFWH.CPP:
Warning W8022 c:\bcc72\include\windows\sdk\GdiplusHeaders.h 650: 'Bitmap::Clone(const Rect &,int)' hides virtual function 'Image::Clone()'
Error E2268 GDIPFWH.CPP 955: Call to undefined function 'hb_parvni' in function HB_FUN_GDIP_FILLRECT()
Error E2268 GDIPFWH.CPP 1004: Call to undefined function 'hb_parvnd' in function HB_FUN_GDIP_DRAWTEXT()
*** 2 errors in Compile ***


C:\QRCODE3>If ErrorLevel 1 Goto Exit 

C:\QRCODE3>REM C:\bcc72\bin\bcc32 -M -c -O2 -eQRCODE3.exe -IC:\XHBBCC72\include QRCODE3.c 

C:\QRCODE3>C:\bcc72\bin\ilink32 -Gn -aa -Tpe -s @Cx.Lnk 
Turbo Incremental Link 6.75 Copyright (c) 1997-2016 Embarcadero Technologies, Inc.
Fatal: Unable to open file 'GDIPFWX.OBJ'


Regards, saludos.


Karinha , usa gdiplus.cpp para incluir las funciones cpp , no deber铆a tener problemas con xharbour .
para quitar el warniing de image::clone() en cabeceras del archivo gdiplus.cpp incluye ...
Code (fw): Select all Collapse
.....
#include <fwh.h>

#define GDIPVER 0x0110

#ifdef __BORLANDC__
#if (__BORLANDC__ >= 0x700)
   //#pragma option -w-hid
   #pragma warn -hid
   #include <gdiplus.h>
   #pragma warn .hid
  //#pragma option -w-hid.
#else
   #include <gdiplus.h>
#endif
#else
   #include <gdiplus.h>
#endif

   #include <gdiplusimaging.h>
....
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Impresi贸n de C贸digos de Barra con TPrinter
Posted: Fri Aug 04, 2017 02:49 PM
Gracias master, no funciona. Que complicado.

Code (fw): Select all Collapse
GDIPFWH.CPP:
Warning W8022 c:\bcc72\include\windows\sdk\GdiplusHeaders.h 650: 'Bitmap::Clone(const Rect &,int)' hides virtual function 'Image::Clone()'
Error E2268 GDIPFWH.CPP 955: Call to undefined function 'hb_parvni' in function HB_FUN_GDIP_FILLRECT()
Error E2268 GDIPFWH.CPP 1004: Call to undefined function 'hb_parvnd' in function HB_FUN_GDIP_DRAWTEXT()
*** 2 errors in Compile ***
Embarcadero C++ 7.20 for Win32 Copyright (c) 1993-2016 Embarcadero Technologies, Inc.
Error E2194: Could not find file 'gdipplus.cpp'


Regards, saludos.
Jo茫o Santos - S茫o Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Impresi贸n de C贸digos de Barra con TPrinter
Posted: Fri Aug 04, 2017 04:23 PM

Joao
Intenta con hb_parni y hb_parnd

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: Impresi贸n de C贸digos de Barra con TPrinter
Posted: Sat Aug 05, 2017 11:04 AM
karinha wrote:Gracias master, no funciona. Que complicado.

Code (fw): Select all Collapse
GDIPFWH.CPP:
Warning W8022 c:\bcc72\include\windows\sdk\GdiplusHeaders.h 650: 'Bitmap::Clone(const Rect &,int)' hides virtual function 'Image::Clone()'
Error E2268 GDIPFWH.CPP 955: Call to undefined function 'hb_parvni' in function HB_FUN_GDIP_FILLRECT()
Error E2268 GDIPFWH.CPP 1004: Call to undefined function 'hb_parvnd' in function HB_FUN_GDIP_DRAWTEXT()
*** 2 errors in Compile ***
Embarcadero C++ 7.20 for Win32 Copyright (c) 1993-2016 Embarcadero Technologies, Inc.
Error E2194: Could not find file 'gdipplus.cpp'


Regards, saludos.


Karinha .

en el error :
Error E2194: Could not find file 'gdipplus.cpp'
el nombre del archivo donde incluir el c贸digo cpp es gdiplus.cpp no gdipplus.cpp no pp

los errores
GDIPFWH.CPP:
Warning W8022 c:\bcc72\include\windows\sdk\GdiplusHeaders.h 650: 'Bitmap::Clone(const Rect &,int)' hides virtual function 'Image::Clone()'
Error E2268 GDIPFWH.CPP 955: Call to undefined function 'hb_parvni' in function HB_FUN_GDIP_FILLRECT()
Error E2268 GDIPFWH.CPP 1004: Call to undefined function 'hb_parvnd' in function HB_FUN_GDIP_DRAWTEXT()

Hacen referencia al archivo gdipfwh.cpp .
驴 Has tocado - modificado ese archivo ?
No lo incluyas al compilar, para que use el que est谩 dentro de las lib de fivewin y no te dar谩 esos errores.
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Impresi贸n de C贸digos de Barra con TPrinter
Posted: Tue Aug 08, 2017 01:15 PM
hmpaquito wrote:
karinha wrote:
hmpaquito wrote:Hablando de impresion de codigo de barras,

Hace unos meses me top茅 con una impresora t茅rmica. Utilic茅 la librer铆a BarLib de Cayetano, pero no imprim铆a nada. En cambio desde Word si imprim铆a sin ningun tipo de problema o configuraci贸n especial...


Cual 茅s la impresora t茅rmica?

Saludos.



Godex G500


Mira se ayuda:

http://www.godexintl.com/us/product/type/model/G500

Como est谩 haciendo, algo asi?

http://fivewin.com.br/index.php?/topic/23752-impressora-termica-epson-tm-t20/#comment-269241

Saludos.
Jo茫o Santos - S茫o Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion