Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

CUPS.GetPrinterCount

Queries number of printers.

Component Version macOS Windows Linux Server iOS SDK
CUPS 2.5 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No

Deprecated

This function was deprecated. Use CUPS.GetPrintersAsJSON instead.

MBS( "CUPS.GetPrinterCount" )

Parameters

none

Result

The number of printers.

Description

Queries number of printers.
Please call this method before calling CUPS.GetPrinterDefault or CUPS.GetPrinterName.

Please consider using CUPS.GetPrintersAsJSON instead to query all printers with details.

Examples

Query number of printers

$count = MBS( "CUPS.GetPrinterCount" )

See also

Release notes

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 5th October 2020


CUPS.GetJobsCount - CUPS.GetPrinterDefault