QRCodes allow an error margin of upto 30%. Thus, information can be recovered from the QRCode even when some data is missing or the QRCode is damaged. This feature is helpful in creating customized QRCodes as you can add images or logos on the QRCode, which may damage the code, but it can still be scanned easily.
The QRCode control has four error correction levels.
Complete the following steps, to change the error correction level of the QRCode control.
Set the ErrorCorrectionLevel property within the <cc1:C1QRCode>
tag, to change the error correction level of the QRCode.
Source View |
Copy Code
|
---|---|
<cc1:C1QRCode ID="C1QRCode1" runat="server" ErrorCorrectionLevel="H" /> |
Add the following code to the Page_Load event, to set the ErrorCorrectionLevel property in code view.
C# |
Copy Code
|
---|---|
C1QRCode1.ErrorCorrectionLevel = C1.Web.Wijmo.Controls.C1QRCode.ErrorCorrectionLevel.H; |
VB |
Copy Code
|
---|---|
C1QRCode1.ErrorCorrectionLevel = C1.Web.Wijmo.Controls.C1QRCode.ErrorCorrectionLevel.H |
The error correction level has been set to H (High) allowing an error margin of 30%.