ComponentOne QRCode for ASP.NET Web Forms
QRCode Features / Code Version
In This Topic
    Code Version
    In This Topic

    The QRCode control has 11 code versions, from 0 to 10. Each code version has a different configuration of the black and white square dots, that the QRCode is composed of. Configuration means the number of black and white dots present in a symbol. The arrangement of the black and white dots is referred to as a module. Starting with version 0 that consists of 21 modules along its height and width, every higher version contains 4 more modules per side. 

    With a rise in the amount of information to be encoded into the QRCode, higher number of modules are needed in the QRCode, resulting in bigger QRCode symbols. Complete the following steps, to change the code version of the QRCode control.

    In the Designer

    1. Click the Smart Tag. The C1QRCode Tasks Menu appears.
    2. Set the CodeVersion property, as per your requirement.
    3. Alternatively, right click the QRCode and select Properties to open the Properties window. Set the CodeVersion property in the Properties window.

    In Source View

    Set the CodeVersion property within the <cc1:C1QRCode> tag, to change the code version of the QRCode.

    Source View
    Copy Code
    <cc1:C1QRCode ID="C1QRCode1" runat="server" CodeVersion="8" Text="QRCode Sample Text" />
    

    In Code

    Add the following code to the Page_Load event, to set the CodeVersion property in code view.

    C#
    Copy Code
    C1QRCode1.CodeVersion = 8;
    
    VB
    Copy Code
    C1QRCode1.CodeVersion = 8
    

    What You've Accomplished

    The code version of the QRCode has been changed to 8, adding more modules to the QRCode.