combit List & Label 24 - .NET Online Web Help
Simple Label
Programming Introduction > Examples > General > Simple Label

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