Hi @StewartBW ,
Since you cannot use third-party DLLs, you can use an open-source QR code generation library written in pure .NET. For example QRCoder library which you can install in NuGet Package Manager.
Sub GenerateQRCode(contactInfo As String)
Dim qrGenerator As New QRCodeGenerator()
Dim qrCodeData As QRCodeData = qrGenerator.CreateQrCode(contactInfo, QRCodeGenerator.ECCLevel.Q)
Dim qrCode As New QRCode(qrCodeData)
Dim qrCodeImage As Bitmap = qrCode.GetGraphic(20)
' Save the QR code as an image file
qrCodeImage.Save("path_to_save_qrcode_image.png", Imaging.ImageFormat.Png)
End Sub
Best Regards.
Jiachen Li
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.