Reflection Desktop VBA Guide
Attachmate.Reflection.Objects.Emulation.IbmHosts Library / Attachmate.Reflection.Objects.Emulation.IbmHosts Library / IbmScreen Object / PrintScreen Method
Print option. see PrintScreenOption for more information.
The number of copies. The range for this argument is 1-99.
Example
In This Topic
    PrintScreen Method (IbmScreen)
    In This Topic
    Prints the selected text or the entire terminal screen.
    Syntax
    expression.PrintScreen( _
       ByVal option As PrintScreenOption, _
       ByVal copies As Integer _
    ) As ReturnCode
    where expression is a variable that represents a IbmScreen Object

    Parameters

    option
    Print option. see PrintScreenOption for more information.
    copies
    The number of copies. The range for this argument is 1-99.

    Return Value

    One of the following ReturnCode enum values.

    Member Description
    Cancelled Cancelled.
    Error Error.
    PermissionRequired Permission is required.
    Success Success.
    Timeout Timeout condition.
    Truncated The text is truncated.
    Example
    This example prints a screen.
    Sub PrintTheScreen()
        
        Dim rcode As ReturnCode
        
        'print one copy of the screen
        rcode = ThisIbmScreen.PrintScreen(PrintScreenOption_PrintScreen, 1)
        
    End Sub
    See Also