combit List & Label 29 - .NET Help
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 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also