Printer - Set Default Printer

Declaration

<AMPRINTER ACTIVITY="set" PRINTER="text" />

Description:

Sets the default printer. For convenience, this activity will display the name of the printer that is currently set to default.

Practical Usage

Used to set a specific printer as the default printer usually before printing a document. Be aware that some applications check for the default printer on startup, so changing the default printer while the application is running could have no effect. In this case, you may need to restart the application.

Parameters

General

Property

Type

Required

Default

Markup

Description

Set default printer to

Text

Yes

(Empty)

PRINTER="printerName"

The name of the printer to be set as the default printer.

Description

Error Causes

On Error

Example

NOTE: The sample AML code below can be copied and pasted directly into the Steps panel of the Task Builder.

Description: Set default printer as "\\SALES\Brother MFC-9840CDW Printer".

 

<AMPRINTER ACTIVITY="set" PRINTER="\\SALES\Brother MFC-9840CDW Printer" />