combit List & Label 30 - .NET Help
Programming Introduction / Tutorial / Fundamentals / Define Options
Define Options

Before the actual main functions Design, Print and Export of List & Label are used, various options and automatisms (see also ListLabelExportOptions Class) can be set, which are to be used for later reporting. For example, independent properties can be defined for each export target. However, an automated e-mail sending can also be preset directly after the export process.

// Clear any existing export options
LL.ExportOptions.Clear();

// Define export options for automatically sending an e-mail with the successfully created export result like a PDF document
LL.ExportOptions.Add(LlExportOption.ExportSendAsMail, "1");
LL.ExportOptions.Add(LlExportOption.ExportMailTo, "combit GmbH <SMTP:llmailtest@combit.net>");
LL.ExportOptions.Add(LlExportOption.ExportMailSubject, "combit List & Label mail test");
LL.ExportOptions.Add(LlExportOption.ExportMailAttachmentList, exportTargetFile);
LL.ExportOptions.Add(LlExportOption.ExportMailShowDialog, "1");
LL.ExportOptions.Add(LlExportOption.ExportMailSendResultAs, "text/html");