QR en PDF con HARU

QR en PDF con HARU

Postby acuellar » Wed Oct 11, 2023 10:08 pm

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 view

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
acuellar
 
Posts: 1593
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: QR en PDF con HARU

Postby karinha » Wed Oct 11, 2023 11:36 pm

Prueba:

Code: Select all  Expand view

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

Re: QR en PDF con HARU

Postby acuellar » Thu Oct 12, 2023 12:19 pm

Gracias estimado Joao

El barcod01.prg funciona perfecto.

El problema es cundo se utiliza HARU
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1593
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: QR en PDF con HARU

Postby cmsoft » Mon Oct 16, 2023 2:43 am

Ademar:
A mi me funciona bien así como lo tienes, incluyendo
REQUEST FWHARU
REQUEST FWZEBRA
User avatar
cmsoft
 
Posts: 1189
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Re: QR en PDF con HARU

Postby acuellar » Mon Oct 16, 2023 2:00 pm

Estimado Cesar

Intenta con éste código
Code: Select all  Expand view

#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
acuellar
 
Posts: 1593
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: QR en PDF con HARU

Postby karinha » Mon Oct 16, 2023 3:43 pm

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7213
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: QR en PDF con HARU

Postby cmsoft » Tue Oct 17, 2023 11:09 am

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
cmsoft
 
Posts: 1189
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Re: QR en PDF con HARU

Postby Willi Quintana » Tue Oct 17, 2023 1:35 pm

Prueba asi:
Code: Select all  Expand view
      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
Willi Quintana
 
Posts: 1002
Joined: Sun Oct 09, 2005 10:41 pm
Location: Cusco - Perú

Re: QR en PDF con HARU

Postby acuellar » Tue Oct 17, 2023 4:25 pm

Muchas Gracias Estimados

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

Y compará los resultados.
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1593
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: QR en PDF con HARU

Postby cmsoft » Tue Oct 17, 2023 4:32 pm

Muestra igual pero mas grande el segundo qr
El destino del Qr es el mismo
User avatar
cmsoft
 
Posts: 1189
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Re: QR en PDF con HARU

Postby acuellar » Tue Oct 17, 2023 4:36 pm

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
acuellar
 
Posts: 1593
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: QR en PDF con HARU

Postby cmsoft » Tue Oct 17, 2023 4:39 pm

Tienes toda la razon. No había prestado atención de tu texto original en inglés.
User avatar
cmsoft
 
Posts: 1189
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 59 guests