QR Code Generator

More
3 years 4 weeks ago - 3 months 1 day ago #341 by Bruce Armstrong
Bruce Armstrong created the code: QR Code Generator
This code sample uses the open source QRCoder .net assembly ( github.com/codebude/QRCoder ). I created a wrapper assembly for that using SnapDevelop, and then a demo project in PowerBuilder 2019 R3 showing how it's used.

Update 07/04/2023: Updated to include sample built with PowerBuilder/SnapDevelop 2022

This message has attachments files.
Please log in or register to see it.

Last Edit: 3 months 1 day ago by Bruce Armstrong. Reason: Updated for PowerBuilder 2022

Please Log in or Create an account to join the conversation.

More
5 days 17 hours ago #533 by Bruce Armstrong
Bruce Armstrong replied the code: QR Code Generator
The examples uploaded to the site are both compiled for .Net Standard 2.0. I believe that means .Net Framework 4.7.1.

The most recent version of the library I'm wrapping is .Net 6, so if you wanted to upgrade the component you would need to move to that.

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #532 by Andy Preman
Andy Preman replied the code: QR Code Generator
Bruce,

What is the minimum version of .NET (framework, runtime, both) required?

Thanks,

Andy

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #525 by FABRIZIO VISCARDI
FABRIZIO VISCARDI replied the code: QR Code Generator
Hello Bruce
thank you for your information about how to set ECC.
I have seen and tried in SnapDeveloper to build a wrapper with a parameter for the ECC Level but... I had not success.

I have seen that now ECC is set to Q level, that is... the QR Code can get corrupted at 25% before the code isn't readable any longer. I think it is a good setting... but sometimes it is requested a different value.
When you will have time to add the ECC parameter to your wrapper it will be fantastic. Thank you again.

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #523 by Marcelo Gil
Marcelo Gil replied the code: QR Code Generator
Ciao Fabricio! Grazie per aver condiviso l'esempio.
Alla fine ha funzionato, ho dovuto modificare il percorso dell'assembly e installare windowsdesktop-runtime-6.0.27-win-x86.exe
Pensavo che Run Packager includesse tutto il necessario per far funzionare Assamblys.

A seconda che la PB APP sia compilata in x86 o x64, viene installato il runtime corrispondente. Nel mio caso l'applicazione รจ stata compilata in x86. Grazie per aver condiviso la tua conoscenza ed esperienza.

Grazie Mille!

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #522 by Fabrizio Viscardi
Fabrizio Viscardi replied the code: QR Code Generator
Hello,
I have a complete example in this page :

fabrizioviscardi.it/powerbuilder-scripts...libreria-qrcoder.php

it's in italian language but i think you can translate easily. In every case there are two versions to download.

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #521 by Marcelo Gil
Marcelo Gil replied the code: QR Code Generator
Hi Fabrizzio, Thank very much for your reply

Regards

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago - 1 month 3 weeks ago #519 by Fabrizio Viscardi
Fabrizio Viscardi replied the code: QR Code Generator
Hello Gil,
to check your problem I focused my attention on 2019R3 version of QrCodedemo because I have a computer without IDE with 2019R3 Runtime but not any with the 2022R3 version (every PC have IDE installed).
I have created 32 and 64 bits qrcode.exe and I have installed them in such computer with Powerbuilder 2019R3 Runtime (without IDE) + Net Core Runtime 2 + Net Core Runtime 3 + Net Core Framework 4.8 + Windows desktop Runtime 6.
Both exe worked perfectly.
In the folder of destination PC you need only: qrcode64.exe , qrcode64.xml, qrcodedemo.pbd, qrCodeGenerator.dll, qrCoder.dll

But to complete my answer I have added :
" ls_version = lnv_assembly.GetDotNetCoreVersion( )
messagebox ("of_createondemand", ls_version ) " in <<of_createondemand>> function, just to see the version of .Net used.
At runtime (in the P.C. above mentionned):
- running "qrcode32.exe" the version is ".NET Core Runtime (x86) vers. 3.1.9"
- running "qrcode64.exe" the version is "Windows Desktop Runtime (x64) vers. 6.0.11"

I am sorry but I haven't any PC with Pb 2022 R3 runtime installed, without IDE.
Last Edit: 1 month 3 weeks ago by Fabrizio Viscardi.

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #518 by Marcelo Gil
Marcelo Gil replied the code: QR Code Generator
Hello Bruce! I need your help please
I downloaded the QR code generator project and from the PB IDE it works fine generating the QR code. When I deploy the exe to the PC where the PB IDE is not installed, it fails to create the wrapper object that calls the ino_QrCoder.getQrAsBlob method Error: "Object instance does not exist"
On this PC I installed .net 6 runtime and .net framework 4.8 without solving the case. Also copy all the project dlls and the entire BIN folder. What could be wrong?

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #516 by Bruce Armstrong
Bruce Armstrong replied the code: QR Code Generator
>>Can this wrapper be imported

Yes

>>and does it work in version P2022 R3?

Yes

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #515 by Marcelo Gil
Marcelo Gil replied the code: QR Code Generator
Hello Bruce! Can this wrapper be imported and does it work in version P2022 R3?

Please Log in or Create an account to join the conversation.

Moderators: Appeon Administrator