combit List & Label 29 - .NET Help
combit.Reporting Namespace / ListLabel Class / Print Method / Print(LlProject,String,Boolean,LlPrintMode) Method

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

File name of the project.

Multiple file names can also be passed semicolon-separated. Then a combination print is performed and the outputs of the individual projects are summarized as total output. But additionally the display of the file selection dialog must be suppressed by setting the parameter showFileSelect to false.

Can also be set via the AutoProjectFile Property.

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

Selects the print mode. See LlPrintMode Enumeration. Can also be set via the AutoDestination Property.

Example


In This Topic
    Print(LlProject,String,Boolean,LlPrintMode) Method
    In This Topic

    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, _
       ByVal printMode As LlPrintMode _
    ) 

    Parameters

    projectType

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

    projectFile

    File name of the project.

    Multiple file names can also be passed semicolon-separated. Then a combination print is performed and the outputs of the individual projects are summarized as total output. But additionally the display of the file selection dialog must be suppressed by setting the parameter showFileSelect to false.

    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.

    printMode

    Selects the print mode. See LlPrintMode Enumeration. Can also be set via the AutoDestination 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 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also