FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version

printer-names

Arguments:

Returns a list of strings, where each string is the name of an available printer (including networked printers). When calling open-stream to open a printer stream and passing the :no-dialog-p initarg to avoid showing the print job dialog, one of these printer names may be passed as the :printer-name initarg to open-stream in order to print on that printer. (On the other hand, when the :no-dialog-p initarg is nil, passing a :printer-name initarg does not work to determine the printer that is initially displayed on the dialog.) Here is an example that prints a half-inch tall string on each available printer, where the printed string points out the name of the printer on which it is being printed.

 
(dolist (name (printer-names))
  (format t "~&Printing to ~a.~%" name)
  (with-output-to-printer (printer
                           :no-dialog-p t
                           :orientation :landscape
                           :printer-name name)
    (setf (font printer)
      (make-font-ex nil :arial
                    (floor (stream-units-per-inch printer)
                           2)))
    (format printer "This is printer ~a." name)))

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version