Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #8703
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: QR Code |
| Date | 2015-11-23 18:22 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <n2vi0d$s09$1@speranza.aioe.org> (permalink) |
| References | <n2kvjr$nn8$1@speranza.aioe.org> <8fd834ff-08e2-420f-8621-7d471dec0324@googlegroups.com> <e0c3c965-7b45-4976-b36d-5cf8e8071901@googlegroups.com> <n2uj6n$eb1$2@speranza.aioe.org> <n2uog2$pho$1@news.m-online.net> |
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
>>
>
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
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
csiph-web