combit List & Label 25 - .NET Online Web Help
Print(LlProject,String,Boolean) Method
Example 


combit.ListLabel25 Namespace > ListLabel Class > Print Method : Print(LlProject,String,Boolean) Method

Project type. See LlProject. Can also be set via the AutoProjectType Property.

File name of the project.  Can also be set via the AutoProjectFile Property.

Use false to suppress the file selection dialog. Can also be set via the AutoShowSelectFile Property.

This key method handles the databound printing. Assign a DataSource to the component and call this method to start a print job.

Syntax
'Declaration
 
Public Overloads Sub Print( _
   ByVal projectType As LlProject, _
   ByVal projectFile As String, _
   ByVal showFileSelect As Boolean _
) 

Parameters

projectType

Project type. See LlProject. Can also be set via the AutoProjectType Property.

projectFile

File name of the project.  Can also be set via the AutoProjectFile Property.

showFileSelect

Use false to suppress the file selection dialog. Can also be set via the AutoShowSelectFile Property.

Example
SqlConnection conn = new SqlConnection(Properties.Settings.Default.ConnectionString); 
SqlConnectionDataProvider provider = new SqlConnectionDataProvider(conn); 
LL.DataSource = provider; 
LL.Print();
Dim conn As New SqlConnection(Properties.Settings.[Default].ConnectionString)
Dim provider As New SqlConnectionDataProvider(conn)
LL.DataSource = provider
LL.Print()
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

ListLabel Class
ListLabel Members
Overload List