combit List & Label 30 - .NET Help
Programming Introduction / Examples / General / Export / Export Without User Interaction
Export Without User Interaction

In order to run the export in the background, at least the target format, the path and the file name for the creation have to be defined in List & Label. This is done by the class ExportConfiguration. Doing this possible user-interactions will be automatically supressed like progress-bar, file select dialogs etc.

using (ListLabel LL = new ListLabel())
{
    // Define/Assign data source
    LL.DataSource = CreateDataSet();

    // Create export configuration (target here is PDF)
    ExportConfiguration exportConfiguration = new ExportConfiguration(LlExportTarget.Pdf, "<Target file name with path>", "<Project file name with path>");

    // Show result
    exportConfiguration.ShowResult = true;

    // Start export
    LL.Export(exportConfiguration);
}