Impresión de Códigos de Barra con TPrinter

Re: Impresión de Códigos de Barra con TPrinter

Postby cnavarro » Thu Aug 03, 2017 8: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
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Impresión de Códigos de Barra con TPrinter

Postby cnavarro » Thu Aug 03, 2017 11:05 pm

Image
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
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Impresión de Códigos de Barra con TPrinter

Postby mastintin » Fri Aug 04, 2017 8:16 am

karinha wrote:gracias Masters, no logro hacer funcionar.

Code: Select all  Expand view

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 http://www.harbour-project.org/
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: Select all  Expand view


.....
#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>
....

 
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: Impresión de Códigos de Barra con TPrinter

Postby karinha » Fri Aug 04, 2017 2:49 pm

Gracias master, no funciona. Que complicado.

Code: Select all  Expand view

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
User avatar
karinha
 
Posts: 7184
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Impresión de Códigos de Barra con TPrinter

Postby cnavarro » Fri Aug 04, 2017 4: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
User avatar
cnavarro
 
Posts: 6500
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Impresión de Códigos de Barra con TPrinter

Postby mastintin » Sat Aug 05, 2017 11:04 am

karinha wrote:Gracias master, no funciona. Que complicado.

Code: Select all  Expand view

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.
User avatar
mastintin
 
Posts: 1516
Joined: Thu May 27, 2010 2:06 pm

Re: Impresión de Códigos de Barra con TPrinter

Postby karinha » Tue Aug 08, 2017 1: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
User avatar
karinha
 
Posts: 7184
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Previous

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 9 guests