In This Topic
If labels are to be created in the Designer or a print/export of labels is to be executed, the project type LlProject.Label is required. If a data source with several tables, such as a DataSet, is connected, the DataMember property can be used to select which data is to be provided in the label. For more information on the different types of projects, see chapter Projecttypes.
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