QR en PDF con HARU

Post Reply
User avatar
acuellar
Posts: 1647
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

QR en PDF con HARU

Post by acuellar »

Mr. RAO

With Haru it does not place the QR with the desired size in PDF, in Preview Perfect

Con Haru no coloca el QR con el tamaño deseado en el PDF en vista previa perfecto

Code: Select all | Expand

cCode:="TEXTO DEL CODIGO QR"
@1.1,4.4  PRINT TO oPrn TEXT cCode AS BARCODE TYPE "QR" SIZE 2.8,2.8 CM 
 
Thanks for the help
Saludos,

Adhemar C.
User avatar
karinha
Posts: 7963
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 5 times
Contact:

Re: QR en PDF con HARU

Post by karinha »

Prueba:

Code: Select all | Expand

C:\fwh..\samples\barcod01.prg
 
https://fivetechsoft.com/forums/viewtopic.php?p=220740

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
acuellar
Posts: 1647
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: QR en PDF con HARU

Post by acuellar »

Gracias estimado Joao

El barcod01.prg funciona perfecto.

El problema es cundo se utiliza HARU
Saludos,

Adhemar C.
User avatar
cmsoft
Posts: 1300
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina
Has thanked: 1 time
Been thanked: 3 times

Re: QR en PDF con HARU

Post by cmsoft »

Ademar:
A mi me funciona bien así como lo tienes, incluyendo
REQUEST FWHARU
REQUEST FWZEBRA
User avatar
acuellar
Posts: 1647
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: QR en PDF con HARU

Post by acuellar »

Estimado Cesar

Intenta con éste código

Code: Select all | Expand

#include "FiveWin.ch"

REQUEST FWHARU
REQUEST FWZEBRA

Function Main()
  TPrinter():lUseHaruPDF:=.T.  
  PRINT oPrn  FILE "PRUEBA.PDF" PREVIEW
  PAGE
   cCode:="https://pilotosiat.impuestos.gob.bo/consulta/QR?nit=145806028&cuf=9F9F8D3316B178A2A7554C91782C077D04CFCA16754CD1B844000E74&numero=102&t=2"
   @1.1,4.4  PRINT TO oPrn TEXT cCode AS BARCODE TYPE "QR" SIZE 2.0,2.0 CM
   @5.1,4.4  PRINT TO oPrn TEXT cCode AS BARCODE TYPE "QR" SIZE 3.0,3.0 CM
  ENDPAGE
  ENDPRINT
Return nil
 
Gracias por la ayuda
Saludos,

Adhemar C.
User avatar
karinha
Posts: 7963
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 5 times
Contact:

Re: QR en PDF con HARU

Post by karinha »

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
cmsoft
Posts: 1300
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina
Has thanked: 1 time
Been thanked: 3 times

Re: QR en PDF con HARU

Post by cmsoft »

acuellar wrote:Estimado Cesar

Intenta con éste código
Este es el resultado
Image

El qr me lo muestra, pero va a una pagina que los datos del comprobantes están vacios.
User avatar
Willi Quintana
Posts: 1025
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú
Contact:

Re: QR en PDF con HARU

Post by Willi Quintana »

Prueba asi:

Code: Select all | Expand

       IF oApp:nPDF_QR = 1  // 5.6
          @ nRowOt/2.54, 0.1 PRINT TO oPrn TEXT cCode AS BARCODE TYPE "PDF417" SIZE 2.2, 0.65 INCHES
         Else
          @ nROwOt/2.54, 0.1 PRINT TO oPrn TEXT cCode AS BARCODE TYPE "QR-CODE" SIZE 0.7, 0.7 INCHES
       EndIf
 
User avatar
acuellar
Posts: 1647
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: QR en PDF con HARU

Post by acuellar »

Muchas Gracias Estimados

Cesar quitale ésta línea TPrinter():lUseHaruPDF:=.T.

Y compará los resultados.
Saludos,

Adhemar C.
User avatar
cmsoft
Posts: 1300
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina
Has thanked: 1 time
Been thanked: 3 times

Re: QR en PDF con HARU

Post by cmsoft »

Muestra igual pero mas grande el segundo qr
El destino del Qr es el mismo
User avatar
acuellar
Posts: 1647
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: QR en PDF con HARU

Post by acuellar »

Es lógico que el segundo tiene que se mas grande por su medida

He ahí la diferencia. deberían ser iguales.

con TPrinter():lUseHaruPDF:=.T. y sin
Saludos,

Adhemar C.
User avatar
cmsoft
Posts: 1300
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina
Has thanked: 1 time
Been thanked: 3 times

Re: QR en PDF con HARU

Post by cmsoft »

Tienes toda la razon. No había prestado atención de tu texto original en inglés.
Post Reply