combit List & Label 27 - .NET Help
Programming Introduction / Examples / General / Simple Label
In This Topic
    Simple Label
    In This Topic

    To print a label, use the project type LlProject.Label. If a data source with multiple tables, such as a DataSet, is connected, the desired data for the label can be selected by the DataMember property.

    using (ListLabel LL = new ListLabel())
    {
        // Define/Assign data source
        LL.DataSource = CreateDataSet();
    
        // Products as data source
        LL.DataMember = "Products";
    
        // Select label as project type
        LL.AutoProjectType = LlProject.Label;
    
        // Call the Designer
        LL.Design();
    
        // Print
        LL.Print();
    }
    
    Using LL As New ListLabel()
        ' Define/Assign data source
        LL.DataSource = CreateDataSet()
    
        ' Products as data source
        LL.DataMember = "Products"
    
        ' Select label as project type
        LL.AutoProjectType = LlProject.Label
    
        ' Call the Designer
        LL.Design()
    
        ' Print
        LL.Print()
    End Using