Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #8685 > unrolled thread

QR Code

Started byFranz Rachbauer <office@rachbauer.org>
First post2015-11-19 18:07 +0100
Last post2015-12-01 21:43 +0100
Articles 15 — 8 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  QR Code Franz Rachbauer <office@rachbauer.org> - 2015-11-19 18:07 +0100
    Re: QR Code "Jamal Assaf" <someone@example.com> - 2015-11-19 17:57 -0500
    Re: QR Code Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2015-11-20 09:28 +0100
    Re: QR Code sherlocksoftware@gmail.com - 2015-11-20 13:52 -0800
      Re: QR Code sherlocksoftware@gmail.com - 2015-11-21 22:29 -0800
        Re: QR Code Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2015-11-22 11:10 +0100
        Re: QR Code Franz Rachbauer <office@rachbauer.org> - 2015-11-23 09:36 +0100
          Re: QR Code "Gerhard Bunzel" <g.bunzel@domonet.de> - 2015-11-23 11:06 +0100
            Re: QR Code Franz Rachbauer <office@rachbauer.org> - 2015-11-23 18:22 +0100
              Re: QR Code "Wolfgang Riedmann" <wriedmann@gmail.com> - 2015-11-23 18:58 +0100
              Re: QR Code Franz Rachbauer <office@rachbauer.org> - 2015-11-24 07:08 +0100
                Re: QR Code Karl Faller <mail_withoutthat_@_drei-f_andthat_.de> - 2015-11-24 18:41 +0100
        Re: QR Code "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2015-11-29 14:36 +0100
          Re: QR Code Sherlock <sherlock@sherlock.com.au> - 2015-11-29 15:41 -0800
            Re: QR Code "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2015-12-01 21:43 +0100

#8685 — QR Code

FromFranz Rachbauer <office@rachbauer.org>
Date2015-11-19 18:07 +0100
SubjectQR Code
Message-ID<n2kvjr$nn8$1@speranza.aioe.org>
Hi,
is it possible to generate QR Code with VO 2.8 as a bmp, jpg or similar 
to print it with a pos printer?
Regards, Franz

[toc] | [next] | [standalone]


#8686

From"Jamal Assaf" <someone@example.com>
Date2015-11-19 17:57 -0500
Message-ID<n2lk49$6rt$1@news.albasani.net>
In reply to#8685
Franz,

I have not seen anything done with pure VO code, however, an activex control 
may help you such as http://www.idautomation.com/barcode-components/activex/


Jamal

"Franz Rachbauer"  wrote in message news:n2kvjr$nn8$1@speranza.aioe.org...

Hi,
is it possible to generate QR Code with VO 2.8 as a bmp, jpg or similar
to print it with a pos printer?
Regards, Franz 

[toc] | [prev] | [next] | [standalone]


#8687

FromKarl Faller <mail_withoutthat_@_drei-f_andthat_.de>
Date2015-11-20 09:28 +0100
Message-ID<i9mt4b5tf0hsdv1ommhpu81jh9c9mqm2su@4ax.com>
In reply to#8685
Franz,
certainly not the shortest way, but you might have a look at:
https://abdulyadi.wordpress.com/
The topmost entry describes a Postgres Extension which produces a
monochrom bitmap.

Karl

>Hi,
>is it possible to generate QR Code with VO 2.8 as a bmp, jpg or similar 
>to print it with a pos printer?
>Regards, Franz

[toc] | [prev] | [next] | [standalone]


#8693

Fromsherlocksoftware@gmail.com
Date2015-11-20 13:52 -0800
Message-ID<8fd834ff-08e2-420f-8621-7d471dec0324@googlegroups.com>
In reply to#8685
Franz

https://www.youtube.com/watch?v=ciPcmNv5rCw

QR code is just a FONT.. print your text or URL to it.

Phil

[toc] | [prev] | [next] | [standalone]


#8695

Fromsherlocksoftware@gmail.com
Date2015-11-21 22:29 -0800
Message-ID<e0c3c965-7b45-4976-b36d-5cf8e8071901@googlegroups.com>
In reply to#8693
Franz

www.sherlock.com.au/vo2code/__QRCode_Test.zip

Solution as a VO app. DLL's for 32bit or 64bit and info for QRcodes

Enjoy.....

Phil McGuinness

[toc] | [prev] | [next] | [standalone]


#8696

FromKarl Faller <mail_withoutthat_@_drei-f_andthat_.de>
Date2015-11-22 11:10 +0100
Message-ID<r2535b9ija5qlobhd7amule21c1lova395@4ax.com>
In reply to#8695
Phil,
cool! 

HAND
Karl

>Franz
>
>www.sherlock.com.au/vo2code/__QRCode_Test.zip
>
>Solution as a VO app. DLL's for 32bit or 64bit and info for QRcodes
>
>Enjoy.....
>
>Phil McGuinness

[toc] | [prev] | [next] | [standalone]


#8701

FromFranz Rachbauer <office@rachbauer.org>
Date2015-11-23 09:36 +0100
Message-ID<n2uj6n$eb1$2@speranza.aioe.org>
In reply to#8695
Hi Phil,
thank you for the code! I have to integrate QR Codes in ReportPro 
reports. Can I directly do this like

========================= Code ==========================
METHOD PrintPageBody(oPrinter) CLASS rptLabel
LOCAL cMessage AS STRING
LOCAL xx, yy, nRowCount , nColCount AS DWORD
LOCAL cEncodedMsg AS STRING

cMessage := "1_15000001_20151123T090025"
QRCodeEncode(AllTrim(cMessage), 0, 3, 0)
nRowCount := DWORD(QRCodeGetRows()) // ' how many rows?
nColCount := DWORD(QRCodeGetCols()) // ' how many characters in one row?
cEncodedMsg := "" // ' produce string for QRCode font
FOR xx := 1 TO nRowCount
   FOR yy := 1 TO nColCount
     cEncodedMsg += CHR(DWORD(QRCodeGetCharAt(INT(xx)-1, INT(yy)-1)))
   NEXT
   cEncodedMsg += CRLF
NEXT
oPrinter:SetFont("MW6 Matrix", 18, FALSE, FALSE, FALSE)
oPrinter:TextOut(oPrinter:Prow, 0, cEncodedMsg, ALIGN_LEFT)
RETURN PRINT_NOMORE
======================= End Code ========================

If I do so I get output like http://www.rachbauer.org/rpprinter.jpg !

Or do I have to:
- Generate QRCode in a control
- Save it to BMP
- Print BMP on report

What is the way to integrate it in ReportPro reports?

Regards, Franz

Am 22.11.2015 um 07:29 schrieb sherlocksoftware@gmail.com:
> Franz
>
> www.sherlock.com.au/vo2code/__QRCode_Test.zip
>
> Solution as a VO app. DLL's for 32bit or 64bit and info for QRcodes
>
> Enjoy.....
>
> Phil McGuinness
>

[toc] | [prev] | [next] | [standalone]


#8702

From"Gerhard Bunzel" <g.bunzel@domonet.de>
Date2015-11-23 11:06 +0100
Message-ID<n2uog2$pho$1@news.m-online.net>
In reply to#8701
Franz,

...I think, you have to print your text after every complete row:

oPrinter:TextOut(oPrinter:Prow, 0, cEncodedMsg, ALIGN_LEFT)

and than go to the next line - and dont add CRLF


HTH

Gerhard Bunzel



"Franz Rachbauer"  schrieb im Newsbeitrag 
news:n2uj6n$eb1$2@speranza.aioe.org...

Hi Phil,
thank you for the code! I have to integrate QR Codes in ReportPro
reports. Can I directly do this like

========================= Code ==========================
METHOD PrintPageBody(oPrinter) CLASS rptLabel
LOCAL cMessage AS STRING
LOCAL xx, yy, nRowCount , nColCount AS DWORD
LOCAL cEncodedMsg AS STRING

cMessage := "1_15000001_20151123T090025"
QRCodeEncode(AllTrim(cMessage), 0, 3, 0)
nRowCount := DWORD(QRCodeGetRows()) // ' how many rows?
nColCount := DWORD(QRCodeGetCols()) // ' how many characters in one row?
cEncodedMsg := "" // ' produce string for QRCode font
FOR xx := 1 TO nRowCount
   FOR yy := 1 TO nColCount
     cEncodedMsg += CHR(DWORD(QRCodeGetCharAt(INT(xx)-1, INT(yy)-1)))
   NEXT
   cEncodedMsg += CRLF
NEXT
oPrinter:SetFont("MW6 Matrix", 18, FALSE, FALSE, FALSE)
oPrinter:TextOut(oPrinter:Prow, 0, cEncodedMsg, ALIGN_LEFT)
RETURN PRINT_NOMORE
======================= End Code ========================

If I do so I get output like http://www.rachbauer.org/rpprinter.jpg !

Or do I have to:
- Generate QRCode in a control
- Save it to BMP
- Print BMP on report

What is the way to integrate it in ReportPro reports?

Regards, Franz

Am 22.11.2015 um 07:29 schrieb sherlocksoftware@gmail.com:
> Franz
>
> www.sherlock.com.au/vo2code/__QRCode_Test.zip
>
> Solution as a VO app. DLL's for 32bit or 64bit and info for QRcodes
>
> Enjoy.....
>
> Phil McGuinness
> 

[toc] | [prev] | [next] | [standalone]


#8703

FromFranz Rachbauer <office@rachbauer.org>
Date2015-11-23 18:22 +0100
Message-ID<n2vi0d$s09$1@speranza.aioe.org>
In reply to#8702
If I use in ReportPro

oPrinter:SetFont("MW6 Matrix", 18, FALSE, FALSE, FALSE)
cEncodedMsg := ""
FOR xx := 1 TO nRowCount
   FOR yy := 1 TO nColCount
     cEncodedMsg += CHR(DWORD(QRCodeGetCharAt(INT(xx) - 1, INT(yy) - 1)))
   NEXT
   oPrinter:TextOut(oPrinter:NextProw, 0, cEncodedMsg, ALIGN_LEFT)
   cEncodedMsg := ""
NEXT

I get a QRCode ( see http://www.rachbauer.org/qrcode.jpg ), but it looks 
a little bit "striped". I don't know if this is correct and 
unfortunately I don't have a scanner to test it.

Regards, Franz

Am 23.11.2015 um 11:06 schrieb Gerhard Bunzel:
> Franz,
>
> ...I think, you have to print your text after every complete row:
>
> oPrinter:TextOut(oPrinter:Prow, 0, cEncodedMsg, ALIGN_LEFT)
>
> and than go to the next line - and dont add CRLF
>
>
> HTH
>
> Gerhard Bunzel
>
>
>
> "Franz Rachbauer"  schrieb im Newsbeitrag
> news:n2uj6n$eb1$2@speranza.aioe.org...
>
> Hi Phil,
> thank you for the code! I have to integrate QR Codes in ReportPro
> reports. Can I directly do this like
>
> ========================= Code ==========================
> METHOD PrintPageBody(oPrinter) CLASS rptLabel
> LOCAL cMessage AS STRING
> LOCAL xx, yy, nRowCount , nColCount AS DWORD
> LOCAL cEncodedMsg AS STRING
>
> cMessage := "1_15000001_20151123T090025"
> QRCodeEncode(AllTrim(cMessage), 0, 3, 0)
> nRowCount := DWORD(QRCodeGetRows()) // ' how many rows?
> nColCount := DWORD(QRCodeGetCols()) // ' how many characters in one row?
> cEncodedMsg := "" // ' produce string for QRCode font
> FOR xx := 1 TO nRowCount
>    FOR yy := 1 TO nColCount
>      cEncodedMsg += CHR(DWORD(QRCodeGetCharAt(INT(xx)-1, INT(yy)-1)))
>    NEXT
>    cEncodedMsg += CRLF
> NEXT
> oPrinter:SetFont("MW6 Matrix", 18, FALSE, FALSE, FALSE)
> oPrinter:TextOut(oPrinter:Prow, 0, cEncodedMsg, ALIGN_LEFT)
> RETURN PRINT_NOMORE
> ======================= End Code ========================
>
> If I do so I get output like http://www.rachbauer.org/rpprinter.jpg !
>
> Or do I have to:
> - Generate QRCode in a control
> - Save it to BMP
> - Print BMP on report
>
> What is the way to integrate it in ReportPro reports?
>
> Regards, Franz
>
> Am 22.11.2015 um 07:29 schrieb sherlocksoftware@gmail.com:
>> Franz
>>
>> www.sherlock.com.au/vo2code/__QRCode_Test.zip
>>
>> Solution as a VO app. DLL's for 32bit or 64bit and info for QRcodes
>>
>> Enjoy.....
>>
>> Phil McGuinness
>>
>

[toc] | [prev] | [next] | [standalone]


#8704

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2015-11-23 18:58 +0100
Message-ID<dbh2dsF94j3U1@mid.individual.net>
In reply to#8703
Hi Franz,

> I get a QRCode ( see http://www.rachbauer.org/qrcode.jpg ), but it
> looks a little bit "striped". I don't know if this is correct and
> unfortunately I don't have a scanner to test it.

every smartphone can read QRcodes - it is enough to install an app if
is not installed (it was not installed on my Nexus smartphone, but
AFAIK most Android phones and all iPhones have such an app installed.)

Wolfgang




-- 

[toc] | [prev] | [next] | [standalone]


#8705

FromFranz Rachbauer <office@rachbauer.org>
Date2015-11-24 07:08 +0100
Message-ID<n30usd$qs0$2@speranza.aioe.org>
In reply to#8703
I tested it with different font sizes: all of them show stripes except 
size 16: this one looks good!

Urs Eggmann also tested it and said that this also appears if size of 
control, font and stringlength do not fit together.

Regards, Franz

[toc] | [prev] | [next] | [standalone]


#8714

FromKarl Faller <mail_withoutthat_@_drei-f_andthat_.de>
Date2015-11-24 18:41 +0100
Message-ID<i5895b9bhialdgt8i0v4fm98pta24e0hcm@4ax.com>
In reply to#8705
Franz,
if you have a look at Phil's sample you see the stripes creeping in
when you go to bigger fonts. 
Don't have tome to dig deeper, but as the provided  font looks like a
set of squares, i presume the switching doesn't work as intended.

Karl

>I tested it with different font sizes: all of them show stripes except 
>size 16: this one looks good!
>
>Urs Eggmann also tested it and said that this also appears if size of 
>control, font and stringlength do not fit together.
>
>Regards, Franz

[toc] | [prev] | [next] | [standalone]


#8750

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2015-11-29 14:36 +0100
Message-ID<dc0dcrF4r56U1@mid.individual.net>
In reply to#8695
Hi Phil,

Playing around with your code (Thanks a lot!) and reading in the internet 
about QR-Code I found unter this link a QR-Code reader.

http://www.codetwo.com/freeware/qr-code-desktop-reader/?sts=1375

With this tool it is possible to check the picture of QR.-C on screen during 
developement. The reader gives a error message if the code is not readable. 
Relatively important, because size of the FT_QRCode1, FontSize and version 
must fit to a certain relation.

regards
Urs

<sherlocksoftware@gmail.com> schrieb im Newsbeitrag 
news:e0c3c965-7b45-4976-b36d-5cf8e8071901@googlegroups.com...
> Franz
>
> www.sherlock.com.au/vo2code/__QRCode_Test.zip
>
> Solution as a VO app. DLL's for 32bit or 64bit and info for QRcodes
>
> Enjoy.....
>
> Phil McGuinness 

[toc] | [prev] | [next] | [standalone]


#8756

FromSherlock <sherlock@sherlock.com.au>
Date2015-11-29 15:41 -0800
Message-ID<ddc24fdc-2e07-437a-89f3-60a4fc5ab802@googlegroups.com>
In reply to#8750
Franz

snip[ Playing around with your code (Thanks a lot!) and reading in the internet 
 about QR-Code I found unter this link a QR-Code reader. ]

If you expand the sample I provided to be a good testing app for other developers please publish AEF, Url link.

Document it well..  outputs, tools etc.


Phil McGuinness

[toc] | [prev] | [next] | [standalone]


#8774

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2015-12-01 21:43 +0100
Message-ID<dc6g2tFllt1U1@mid.individual.net>
In reply to#8756
Hi Phil,

I just wanted Franz to help a little bit, because I was interested in the
principle. I have no personal need to generate QR-Codes.
For that I just varied different parameters but did not enhance the program
to a test method. Sorry, there is no interesting code available.
(I would not hesitate to share code with the community!)

Regards
Urs


"Sherlock" <sherlock@sherlock.com.au> schrieb im Newsbeitrag
news:ddc24fdc-2e07-437a-89f3-60a4fc5ab802@googlegroups.com...
> Franz
>
> snip[ Playing around with your code (Thanks a lot!) and reading in the
> internet
> about QR-Code I found unter this link a QR-Code reader. ]
>
> If you expand the sample I provided to be a good testing app for other
> developers please publish AEF, Url link.
>
> Document it well..  outputs, tools etc.
>
>
> Phil McGuinness
>
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web