List & Label .NET
combit.Reporting Namespace / LlCore Class / LlGetDefaultPrinter Method
String for the printer name.


In This Topic
    LlGetDefaultPrinter Method
    In This Topic
    The system's default printer can be queried hereby.
    Syntax
    'Declaration
     
    
    Public Shared Function LlGetDefaultPrinter( _
       ByRef printerName As String _
    ) As DEVMODE
    public static DEVMODE LlGetDefaultPrinter( 
       ref string printerName
    )
    public:
    static DEVMODE^ LlGetDefaultPrinter( 
       String^% printerName
    ) 

    Parameters

    printerName
    String for the printer name.

    Return Value

    DEVMODE structure of the default printer.
    Requirements

    Platforms: Windows 10 (Version 21H2 - 22H2), Windows 11 (22H2 - 25H2), Windows Server 2016 - 2025
    .NET: .NET Framework 4.8, .NET 8, .NET 9, .NET 10

    See Also