combit List & Label 29 - .NET Help
combit.Reporting Namespace / ListLabel Class / Print Method / Print() Method
Example


In This Topic
    Print() 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. The overloads allow to fine tune the behavior by suppressing the file dialog, the print option dialog, preset the project file name etc. You may also use the Auto... properties (e.g. AutoProjectFile Property) to modify these settings.

    Syntax
    'Declaration
     
    
    Public Overloads Sub Print() 
    public void Print()
    public:
    void Print(); 
    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