combit List & Label 24 - .NET Online Web Help
Restriction of Export Formats
Programming Introduction > Examples > General > Export > Restriction of Export Formats

If only specific export formats should be available for the end user, the list of formats can be restricted exactly to these formats. This is possible with the option LlOptionString.Exports_Allowed.

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

    // Only allow PDF and preview
    LL.Core.LlSetOptionString(LlOptionString.Exports_Allowed, "PDF;PRV");

    // Start export
    LL.Print();
}
Using LL As New ListLabel()
    ' Define/Assign data source
    LL.DataSource = CreateDataSet()

    ' Only allow PDF and preview
    LL.Core.LlSetOptionString(LlOptionString.Exports_Allowed, "PDF;PRV")

    ' Start export
    LL.Print()
End Using