NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: de la Rosa on March 05, 2022, 05:18:04 PM

Title: Saving QR Code to an ImageFile
Post by: de la Rosa on March 05, 2022, 05:18:04 PM
Hi,

In the below Code, the QR Code is generated in the Element defined by ElementID, how can I save the generated QR image to an image file on disk where it can be retrieved and displayed elsewhere?

    Glo:st.remove('<123>')
    Glo:st.remove('<125>')
    Glo:st.remove('<10>')
    Glo:st.remove('<13>')
     
    ElementData = 'QRDisplayForm?RefNo =' & p_web.GSV('RefNo') & '& CustID =' & p_web.GSV('CusttID')
     
    ElementID = 'Ticket_QR'
       
    p_web.script('generateQrCode('& '''' & CLIP(elementID) & '''' & ',' & '''' & Clip(ElementData) & '''' & ');')




TIA
Vic

Title: Re: Saving QR Code to an ImageFile
Post by: Jane on March 06, 2022, 11:52:15 AM
?? maybe easier to use a library to generate the image on the server rather than with script on the browser ??
Title: Re: Saving QR Code to an ImageFile
Post by: de la Rosa on March 10, 2022, 09:25:15 PM
Hi Jane,

Yes, can you point me to an example I can refer to?

Thanks,
Vic
Title: Re: Saving QR Code to an ImageFile
Post by: Alberto on March 11, 2022, 06:54:46 AM
https://github.com/RobertArtigas/QRCodeUsingClass
Title: Re: Saving QR Code to an ImageFile
Post by: de la Rosa on March 11, 2022, 12:04:43 PM
Hi Alberto,

Sorry, I'm not familiar on how to compile it without an *.app file. There are 2 project files but with no app files?

Will appreciate any help.

Thanks,
Vic
Title: Re: Saving QR Code to an ImageFile
Post by: Bruce on March 14, 2022, 10:10:13 PM
I recommend coming to a Wednesday Open webinar (www.clarionlive.com) so I can show you how to compile a project.
Title: Re: Saving QR Code to an ImageFile
Post by: de la Rosa on March 15, 2022, 09:34:40 AM
Ok Bruce, Thanks!