Returns the printer by default of the indicated user.

1 system.user.getDefaultPrinter

<system.user.getDefaultPrinter code='code'/>
Example

Obtains the printer by default of the user by default.

Copy
<xsql-script name='system_user_getDefaultPrinter_sample1'>
    <body>
        <println>
            <system.user.getDefaultPrinter />
        </println>
    </body>
</xsql-script>

If you do not pass a user code via the attribute code, the system returns the value related with the user which executes the command.

Example

Obtains the printer by default of a specific user.

Copy
<xsql-script name='system_user_getDefaultPrinter_sample2'>
    <body>
        <println>
            <system.user.getDefaultPrinter code='bpr'/>
        </println>
    </body>
</xsql-script>

Informing the attribute code, the system returns the value related with the specific user code.