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.
General Parameters
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 tab - A custom description can be provided on the Description tab to convey additional information or share special notes about a task step.
Error Causes tab - Specify how this step should behave upon the occurrence of an error. (Refer to Task Builder > Error Causes Tab for details.)
On Error tab - Specify what AWE should do if this step encounters an error as defined on the Error Causes tab. (Refer to Task Builder > On Error Tab for details.)
Example
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" />