Printer.PrinterCount
--------------------

Queries the number of printers.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Printer](component_Printer.md) | [3.0](newinversion30.md) | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ❌ No |

MBS( "Printer.PrinterCount" ) ### Parameters

none

### Result

Returns the number of printers.

### Description

Queries the number of printers.  
On Windows we query local and favorite printers.  
### Examples

Queries number of printers:

 $r = MBS ( "Printer.PrinterCount" )  
Query list of all printers with While loop:

 Let ( \[   
 count = MBS ( "Printer.PrinterCount" );   
 list = While (   
 \[  
 l = "";   
 i = 0  
 \];   
 i &lt; count ;   
 \[   
 l = l &amp; MBS ( "[Printer.PrinterName](PrinterPrinterName.md)"; i ) &amp; ¶;   
 i = i + 1   
 \] ; l )  
 \]; list )  
### See also

- [Printer.Print](PrinterPrint.md)
- [Printer.PrinterInfo](PrinterPrinterInfo.md)
- [Printer.PrinterName](PrinterPrinterName.md)
- [Printer.PrinterNames](PrinterPrinterNames.md)

### Example Databases

- [Mac and iOS/PDFKit/PDFKit Print Documents](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/PDFKit/PDFKit%20Print%20Documents.shtml#3ScriptAnchor_)
- [Printers/Printers](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Printers/Printers.shtml#1ScriptAnchor_)

### Blog Entries

- [Control printing in FileMaker with MBS Plugin on MacOS](https://www.mbsplugins.de/archive/2023-06-11/Control_printing_in_FileMaker_/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.0pr8](https://www.mbsplugins.de/archive/2012-11-14/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 5/2017, Seite 21](https://filemaker-magazin.de/neuigkeit/3961-Appetithappen-FMM_201705)

This function checks for a license.

Created 18th August 2014 , last changed 5th February 2024

  
[Printer.Print](PrinterPrint.md) - [Printer.PrinterInfo](PrinterPrinterInfo.md)

[HTML Version](PrinterPrinterCount.shtml)