How can I Generate and print QRCode on Invoice for getting invoice info

Hello!
How can I Generate and print QRCode on Invoice for getting invoice info by scanning QRCode on any mobile or scanning device

1 Reply 1 reply marked as answer

GG Gowtham Gunashekar Syncfusion Team June 3, 2020 02:18 PM UTC

Hi Ishan, 
 
You can create the QR Code by using the following code snippet and export the QR Code as base64 image and you can use the image any where in your product. 
 
In the following code’s value property you can give the data for R Code 
Code Snippet to QR Code: 
 
 
@(Html.EJS().QRCodeGenerator("container").Width("200px").Height("150px").Value("SYNCFUSION").DisplayText(s => s.Visibility(false)).Invalid("invalidInput").Render() ) 
 
 You can export in QR Code as Base64 image by using following code 
 
   var myCanvas: any= document.getElementById('barcodecontent'); 
    var img3 = new Image; 
   // get the base 64 image of the generated QR Code 
    var data = myCanvas.toDataURL();  
    alert(data) 
 
 
 
Regards, 
Gowtham G. 
 


Marked as answer
Loader.
Up arrow icon