combit List & Label 29 - .NET Help
combit.Reporting Namespace / ListLabel Class / Print Method / Print(String) Method
Name of the temporary printer to be used.


In This Topic
    Print(String) 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.

    This overload allows to set the printer name temporarily for this print to the specified name. Please note the following:

    • The printer will be set for all regions if there are multiple regions in a project.
    • Changing the printer name is only temporary, as soon as the name is empty, the original printer name set in the project will be used again.
    • If a Print("<Printer>") is followed by a Print(), also the original printer name set in the project will be used again.
    • If an exception is triggered during printing (e.g. by the button "Cancel" in the print options dialog) which is catched in the code and a new print without a printer name is started afterwards, the default printer/design settings are active, not the printer from the cancelled print job.
    Syntax
    'Declaration
     
    
    Public Overloads Sub Print( _
       ByVal printerName As String _
    ) 
    public void Print( 
       string printerName
    )
    public:
    void Print( 
       String^ printerName
    ) 

    Parameters

    printerName
    Name of the temporary printer to be used.
    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