docs

Home All functions Categories

vuSetDefaultPrinter(PrinterName)

vuSetDefaultPrinter(*CSTRING), Signed

Description

Sets the PC’s default printer to the printer specified by name. If the name is left blank, the first printer in the system list will be set as default.

Parameters

Parameter Data Type Description
PrinterName CSTRING(256) The name of the printer to set as the default. Leave blank to select the first printer listed.

Returns

A LONG value:

Example

PrinterName = 'Epson Stylus Photo R300'

IF vuSetDefaultPrinter(PrinterName)
  MESSAGE('Default printer set successfully.')
ELSE
  MESSAGE('Failed to set default printer.')
END

Notes

Home All functions Categories