FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour QR code Easy Report
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
QR code Easy Report
Posted: Thu May 16, 2019 08:49 PM

Good afternoon everyone

I need to insert a QR barcode from a report created with EASYREPORT.

I have the latest version FW1903.

First of all, Thanks

Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: QR code Easy Report
Posted: Sun Jun 09, 2019 08:34 PM
Program: er_qrcode.prg

Code (fw): Select all Collapse
#include "fivewin.ch"
#include "easyrep.ch"

REQUEST FWZEBRA

//----------------------------------------------------------------------------//

function Main()

   local oVRD, aItemData, i

   aItemData := {  { "1232764" ,"JAM 250gm" }  ,;
                   { "2522564" ,"PARLE G 250gm" }  ,;
                   { "3292264" ,"JUICE 500 ml" }  ,;
                   { "4235364" ,"CHOCLATE 250gm" } }

    EASYREPORT oVRD NAME ".\er_qrcode.vrd" PREVIEW .T.

    for i := 1 To Len( aItemData )

        PRINTAREA 1 OF oVRD   ;
        ITEMIDS    {  101, 104 , 105 }  ;
        ITEMVALUES {  "NUMBER" + CRLF + aItemData[i,1] + CRLF + "NAME:" + CRLF + aItemData[i,2],;
            aItemData[i,1] , aItemData[i,2] }

    next

    oVRD:End()

return nil
//----------------------------------------------------------------------------//


er_qrcode.vrd
Code (fw): Select all Collapse
[General]
Title=
TopMargin=20
LeftMargin=20
PageBreak=270
Measure=1
Orientation=1
EditProperties=1
EditAreaProperties=1
DeveloperMode=1
InsertMode=1
EditLanguage=1
ShowInfoMsg=1
PrintIDs=1
GridWidth=1
GridHeight=1
ShowGrid=0
Expressions=1
GeneralExpressions=General.dbf
UserExpressions=User.dbf
DataExpressions=Database.dbf

[Fonts]
1=Arial| 0| -11| 0| 0| 0| 0| 0
[Colors]
1=0
2=16777215
[Infos]
Revision=49
SaveDate=09.06.2019
SaveTime=19:18:59
[Areas]
1=er_qrcode.v01


er_qrcode.v01
Code (fw): Select all Collapse
[General]
Title=Details
Width=200
Height=63
Top1=0
Top2=0
TopVariable=1
Condition=1
DelEmptySpace=0
BreakBefore=0
BreakAfter=0
PrintBeforeBreak=0
PrintAfterBreak=0
ControlDBF=none
Formula1=
Formula2=
Formula3=
Formula4=
Formula5=
Formula6=
Formula7=
Formula8=
Formula9=
Formula10=
Formula11=
Formula12=
[Items]
406=TEXT|ITEM_NAME|105|1|1|1|4|111|72|5|1|1|2|1|0|0||0||||||||||||||0|0.20
407=TEXT|ITEM_CODE|104|1|1|1|4|79|30|5|1|1|2|1|0|0||0||||||||||||||0|0.20
410=LineHorizontal|Line horizontal|-1|1|1|1|55|7|191|3|1|2|1|1|0|0|0||||||||||
408=BARCODE|12345678|101|1|1|1|2|10|57|50|17|1|2|1|1|0.30|||||||||||


Regards



G. N. Rao.

Hyderabad, India
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: QR code Easy Report
Posted: Mon Jun 10, 2019 02:27 PM
Nages,
why I see small qrcode onmy computer ?



do you have a particular configuration ?

I check and I have this



but then it is printed smaller
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: QR code Easy Report
Posted: Tue Jun 11, 2019 04:06 PM
Mr Nages

Good
Thank you very much for answering.
I wanted to report that exactly the same thing happens to me as silvio, the qrcode comes out small.

On the other hand and taking advantage of the opportunity, could you please test the generation of the report directly to pdf, since by just adding this line:

Code (fw): Select all Collapse
EASYREPORT oVRD NAME ".\er_qrcode.vrd" PREVIEW .T. FILE ".\er_qrcode.pdf"

and try to generate several times the report, you can see that sometimes it goes wrong and sometimes it goes well.

First of all, Thanks.



Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: QR code Easy Report
Posted: Tue Jun 11, 2019 05:32 PM
and try to generate several times the report, you can see that sometimes it goes wrong and sometimes it goes well.

We are working on this. We are not getting this problem, but surely we check everything and ensure you get pdf every time you print. This may take a little more time but we will provide you with a solution. BTW may I ask, have you downloaded FWH1905?

About the small size of QRcode: There was a bug. Please email me at nageswaragunupudi [at] gmail [dot] com. I will send you revised fwbarcod.prg. You link this revised program with your application.

Let me also inform you that I can see none of the images posted by you. Probably the links are not accessible publicly.
Regards



G. N. Rao.

Hyderabad, India
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: QR code Easy Report
Posted: Tue Jun 11, 2019 06:00 PM
nageswaragunupudi wrote:
and try to generate several times the report, you can see that sometimes it goes wrong and sometimes it goes well.

We are working on this. We are not getting this problem, but surely we check everything and ensure you get pdf every time you print. This may take a little more time but we will provide you with a solution. BTW may I ask, have you downloaded FWH1905?


Yes, I already downloaded, compile with fw1905, but it does not work either.

Let me also inform you that I can see none of the images posted by you. Probably the links are not accessible publicly.


the hosting is public, I attach the links, so you can review the images.

http://demo.livingo.co/images/qrpeque1.png
http://demo.livingo.co/images/qrpeque2.png

About the small size of QRcode: There was a bug. Please email me at nageswaragunupudi [at] gmail [dot] com. I will send you revised fwbarcod.prg. You link this revised program with your application.


I will send it immediately.
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: QR code Easy Report
Posted: Tue Jun 11, 2019 06:14 PM
Regards



G. N. Rao.

Hyderabad, India
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: QR code Easy Report
Posted: Tue Jun 11, 2019 09:18 PM

Both the embedded images and the links worked fine from here. Check your DNS. Try using Google's DNS.

EMG

Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: QR code Easy Report
Posted: Wed Jun 12, 2019 09:30 AM
Rao
Now the qrcode run ok

I think you deserved a cup of coffee, think I offer it to you !!!!
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: QR code Easy Report
Posted: Wed Jun 12, 2019 09:31 AM

Thanks for your tasty Italian mocca coffee.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: QR code Easy Report
Posted: Thu Jun 13, 2019 04:16 PM

Good Morning

Me again,

Perform several tests on other computers, all with the same result, at some time does not build the pdf file.

Results of the experiment

total computers 7

1 computer OS WIN10 64, never built the pdf.
1 computer OS WIN10 64, in the 10th time I do not build pdf.
1 computer OS WIN7 32, in the sixth time I do not build pdf.
1 computer OS WIN10 32, in the fourth time I do not build pdf.
1 computer OS WIN8 64, never build pdf.
1 computer OS WIN7 32, in the fifth time I do not build the pdf.
1 OS WINXP computer, it does not work.

I do not know if the topic has to do with the classes that generate the pdf in xharbour?

I'm going to do some tests but I'm going to compile with harbour.

Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: QR code Easy Report
Posted: Thu Jun 13, 2019 04:21 PM

Mr. Leandro

Now please do not spend more time on this issue.
Let us work and do more tests on this issue.
We will get back to you very soon.

Hope the QR-Code size issue in the above sample is resolved for you now.

Regards



G. N. Rao.

Hyderabad, India
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: QR code Easy Report
Posted: Thu Jun 13, 2019 04:31 PM
Thank you

What happens is that I wanted to help a little to see if I found the cause of the error.

Thank you very much for the help, I remain alert.

Hope the QR-Code size issue in the above sample is resolved for you now.

I will now do the tests on the size of the qrcode and comment.
Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: QR code Easy Report
Posted: Wed Jul 03, 2019 03:36 AM

Goodnight

Mr Nages, I apologize for pressing :oops: :oops: :oops: , but I need the solution to create the pdf directly to hard disk. file "tales.pdf" from EASY REPORT, since it does not always work.

First of all, Thanks

Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]
Posts: 1816
Joined: Wed Oct 26, 2005 02:49 PM
Re: QR code Easy Report
Posted: Sun Jul 21, 2019 01:48 AM
Mr Nages

Buenas noches,

Ayer descargue la versión fwh1906, y problema solucionado :-) ya crea el archivo pdf correctamente; directo al disco duro, al mismo tiempo se genera el código QR desde Easy Report.

De nuevo muchas gracias por la ayuda.

Saludos

Saludos
LEANDRO AREVALO
Bogotá (Colombia)
https://hymlyma.com
https://hymplus.com/
leandroalfonso111@gmail.com
leandroalfonso111@hotmail.com

[ Turbo Incremental Link64 6.98 Embarcadero 7.70 ] [ FiveWin 25.01 ] [ xHarbour 64 bits) ]

Continue the discussion