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


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

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

File name of the project or default for the file selection dialog. Can also be set via the AutoProjectFile 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 _
) 
public void Print( 
   LlProject projectType,
   string projectFile
)
public:
void Print( 
   LlProject projectType,
   String^ projectFile
) 

Parameters

projectType

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

projectFile

File name of the project or default for the file selection dialog. Can also be set via the AutoProjectFile 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