A label project is opened in the Designer using the main Design function. An XML file is used as the data source.
// Add List & Label namespaces using combit.Reporting; using combit.Reporting.DataProviders; ... // Create List & Label object using(ListLabel LL = new ListLabel()) { // Licensing the List & Label component LL.LicensingInfo = "xXxXxXxX"; // Identify the data source XmlDataProvider xmlProvider = new XmlDataProvider(@"C:\temp\customers.xml"); LL.DataSource = xmlProvider; LL.DataMember = "Customers"; // Define project type LL.AutoProjectType = LlProject.Label; // Define some options (optional) // No more options to define // Execute main function: Design LL.Design(); // Post-Processing (optional) // Do nothing currently }
' Add List & Label namespaces Imports combit.Reporting Imports combit.Reporting.DataProviders ... ' Create List & Label object Using LL As New ListLabel() ' Licensing the List & Label component LL.LicensingInfo = "xXxXxXxX" ' Identify the data source Dim xmlProvider As New XmlDataProvider("C:\temp\customers.xml") LL.DataSource = xmlProvider LL.DataMember = "Customers" ' Define project type LL.AutoProjectType = LlProject.Label ' Define some options (optional) ' No more options to define ' Execute main function: Design LL.Design() ' Post-Processing (optional) ' Do nothing currently End Using