QR Code Generator

  • Bruce Armstrong
  • Bruce Armstrong's Avatar Code Author
  • Online
More
3 years 6 months ago - 8 months 1 week 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: 8 months 1 week ago by Bruce Armstrong. Reason: Updated for PowerBuilder 2022

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

  • Bruce Armstrong
  • Bruce Armstrong's Avatar Code Author
  • Online
More
2 weeks 3 days ago #549 by Bruce Armstrong
Bruce Armstrong replied the code: QR Code Generator
Fabrizio, that looks great. Good work!

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

More
2 weeks 3 days ago #548 by FABRIZIO VISCARDI
FABRIZIO VISCARDI replied the code: QR Code Generator
Alessandro
you can read more here :
fabrizioviscardi.it/powerbuilder-scripts...libreria-qrcoder.php

It works... I have installed it to my client !

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

  • Bruce Armstrong
  • Bruce Armstrong's Avatar Code Author
  • Online
More
2 weeks 3 days ago #547 by Bruce Armstrong
Bruce Armstrong replied the code: QR Code Generator
The code should work fine when deployed to another machine. If it's not working for you then you probably missed one of the dependencies. This is a wrapper DLL, so you no only have to deploy this DLL, but the DLL it wraps as well.

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

More
2 weeks 3 days ago #546 by Alessandro Feltrin
Alessandro Feltrin replied the code: QR Code Generator
Hi Fabrizio, it also happens to me that the application (32 or 64) works correctly on a computer with the environment installed. If I bring everything (exe, pbd, xml, dll etc.) to another PC without the environment installed it no longer works, in fact the application works but the QRCODEs are not generated

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

  • Bruce Armstrong
  • Bruce Armstrong's Avatar Code Author
  • Online
More
5 months 2 weeks 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
5 months 2 weeks ago #532 by Brian McCarthy
Brian McCarthy 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
6 months 2 weeks 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
7 months 5 hours 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
7 months 11 hours 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
7 months 13 hours 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.

Moderators: Appeon Administrator