.. highlightlang:: us .. index:: AppGetAllPrinterNames .. _appgetallprinternames: AppGetAllPrinterNames ===================== .. us.tag AppGetAllPrinterNames ENGLISH App The function :ref:`AppGetAllPrinterNames` returns a vector with printer names. .. function:: ssPrinterName = AppGetAllPrinterNames() .. us.return **Return Value** *ssPrinterName* is a vector with printer names or an empty string if no printers are installed. .. us.example **Example** The following example displays a dialog box and sets the selected printer :: def SelectPrinterDlg() { svPrinter = AppGetAllPrinterNames(); ssPrinter = _CreateComboBoxText(svPrinter); svRet = DialogBox("Printer: |C5 |", ssPrinter, "Printer Selection"); if (svRet[1] == "DLG_CANCEL") { return FALSE; } AppSetPrinter(svRet[1]); return TRUE; } .. seealso:: :ref:`overview-application-object`, :ref:`AppGetActivePrinterName`, :ref:`AppSetPrinter`, :ref:`AppIsPostScriptPrinter`, :ref:`DocPrint`, :ref:`PagePrint` :sub:`id-1126161`