Print Page | Close Window

SEPA QR CODE

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3885
Printed Date: 24 Apr 25 at 6:40AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: SEPA QR CODE
Posted By: HJM
Subject: SEPA QR CODE
Date Posted: 01 Feb 21 at 2:23PM
I like to print a SEPA QR Code on my pdf's
the code I use is

   SepaString = "BCD" & vbCrLf & "001" & vbCrLf & "1" & vbCrLf & "SCT" & vbCrLf & _
                       "BHBLDEHHXXX" & vbCrLf & "Franz Mustermänn" & vbCrLf &                   "DE71110220330123456789" & vbCrLf & _
                       "EUR12.3" & vbCrLf & _
                       "GDDS" & vbCrLf & "RF18539007547034"

and

result = qpObject.DrawQRCode(100, 200, 20, SepaString , 0, 0)

the QR Code appears on the pdf at the righ place, BUT the bank Apps does not recognize it..
What do I do wrong??

Henri



Replies:
Posted By: Ingo
Date Posted: 01 Feb 21 at 9:47PM
Hi Henri :)

why are you using vbCrLf?
Are you sure that the systems are able to work with a string line containing Carriage return + LineFeed?
The other point:
I've made some tests with online generators...
They are telling that behind the "BCD" you should insert "002" and not "001".
Try it ...

Cheers,
Ingo



-------------
Cheers,
Ingo



Posted By: HJM
Date Posted: 02 Feb 21 at 7:37AM
Hi Ingo
I know you! 
In the documentation it says: a linefeed OR carriage return Linefeed.. I tried a Linefeed only also. And that doesnt work either unfortunately
I am going to use 002, but I am not hopefull. In the examples I have seen there is "001" and those work.. so
I will let you know...


Posted By: HJM
Date Posted: 02 Feb 21 at 7:39AM
Helas, the use of 002 doesnt do it...


Posted By: Ingo
Date Posted: 02 Feb 21 at 6:19PM
Hi again :)

I'm pretty sure that you're knowing QuickPDF needs strings in unicode format?
Obviously you're seeing the matrix on the paper:
What's the content of "result"... 0 or 1?
What will be the resulting value of LastErrorCode if you insert it after the DrawQRCode-call?
Last idea is visual debugging. Print the QR-Code with your app and then try a free online service using the same data. Differences?




-------------
Cheers,
Ingo



Posted By: HJM
Date Posted: 03 Feb 21 at 11:04AM
Hi Ingo
The result is 1, so the QRCode generates OK. I think I am sending Unicode (with strconv) but am not sure. 
The lasterrorcode is 103 (but I dont know what that means)
And visual: the QR code is visually NOT the same as the generated QR codes online..
allthough a standard QR Code reader has the same result for both codes



Posted By: Ingo
Date Posted: 03 Feb 21 at 2:59PM
Hi Henri,

103 The https://www.debenu.com/docs/pdf_library_reference/Encrypt.php" rel="nofollow - Encrypt function was used on a document that was already encrypted
You'll find all codes here:
https://www.debenu.com/docs/pdf_library_reference/LastErrorCode.php

Did you already made a simple test with the qr-app on your smartphone?
Readable or not?



-------------
Cheers,
Ingo



Posted By: HJM
Date Posted: 03 Feb 21 at 3:12PM
Hi Ingo
as I told in my first message: the QR code cannot be read in the bank app (where it normalle can be read).
I allready found the LastError page, but the message itself doesnt ring a bell ( I havent encrypted it)

so: the QR code cannot be read by a compatible bank app and I really dont know why not.. 


Posted By: HJM
Date Posted: 03 Feb 21 at 3:13PM
and of course (?) the online examples CAN be read and interpreted by the same bank app


Posted By: HJM
Date Posted: 04 Mar 21 at 2:10PM
Is there no user who has made a SEPA QR ??? Or can give me a hint to solve the question??


Posted By: Ingo
Date Posted: 04 Mar 21 at 5:44PM
Perhaps this helps?
http://www.quickpdf.org/forum/qrcode-with-no-text_topic2848.html




-------------
Cheers,
Ingo



Posted By: HJM
Date Posted: 08 Mar 21 at 8:12AM
Hi Ingo
The QR code is generated in my case. It also reads OK when reading with a standard QRcode-reader (it reads exactly as it should) but it does not work as a SEPA code, that is: standard bank apps read it and say that it is not recognized.
I expect things as normalizepage do not change that, but I will try. 
The subject of the reference page by the way is: QR code without text. But I do not need text in my qr-code other than I can read with the standard qr code reader.. (so it has text)

Henri




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk