combit List & Label 30 - .NET Help
combit.Reporting Namespace / ListLabel Class / Export Method
Determines the export target format and other options.
Example


Export Method (ListLabel)

This key method handles the databound export to one of the available export formats. Assign a DataSource to the component and call this method to start an export. Export options not available in the ExportConfiguration Class can be added via the ExportOptions property.

Syntax
'Declaration
 
Public Sub Export( _
   ByVal exportConfiguration As ExportConfiguration _
) 
 

Parameters

exportConfiguration
Determines the export target format and other options.
Example
OleDbCommand cmd = CreateOleDbCommand();
DbCommandSetDataProvider provider = new DbCommandSetDataProvider();
provider.AddCommand(cmd, "Products");
LL.SetDataBinding(provider, "Products");

// create export configuration
ExportConfiguration exportConfiguration = new ExportConfiguration(LlExportTarget.Pdf, fileNameBox.Text, "simple.lst");
exportConfiguration.ShowResult = true;

// export
LL.Export(exportConfiguration);
Dim cmd As OleDbCommand = CreateOleDbCommand()
Dim provider As New DbCommandSetDataProvider()
provider.AddCommand(cmd, "Products")
LL.SetDataBinding(provider, "Products")

' create export configuration
Dim exportConfiguration As New ExportConfiguration(LlExportTarget.Pdf, fileNameBox.Text, "simple.lst")
exportConfiguration.ShowResult = True

' export
LL.Export(exportConfiguration)
Requirements

Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9

See Also