AppGetAllPrinterNamesΒΆ
The function AppGetAllPrinterNames returns a vector with printer names.
-
ssPrinterName = AppGetAllPrinterNames()
Return Value
ssPrinterName is a vector with printer names or an empty string if no printers are installed.
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;
}
See also
Overview Application Object, AppGetActivePrinterName, AppSetPrinter, AppIsPostScriptPrinter, DocPrint, PagePrint
id-1126161