combit List & Label 24 - .NET Online Web Help
Export Method (ListLabel)
Example 


combit.ListLabel24 Namespace > ListLabel Class : Export Method
Determines the export target format and other options.

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 _
) 
public:
void Export( 
   ExportConfiguration^ 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 Vista - Windows 10 Version 1809, Windows Server 2008 - 2016

See Also

Reference

ListLabel Class
ListLabel Members