printer_open
(PECL printer SVN)
printer_open — Opens a connection to a printer
Description
resource printer_open
([ string
$printername
] )This function tries to open a connection to the given printer.
printer_open() also starts a device context.
Parameters
-
printername
-
The printer name. If no parameter was given it tries to open a connection to the default printer (if not specified in php.ini as printer.default_printer, PHP tries to detect it).
Return Values
Returns a printer handle on success or FALSE
on failure.
Examples
Example #1 printer_open() example
<?php
$handle = printer_open("HP Deskjet 930c");
$handle = printer_open();
?>
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения только для Windows
- Принтер
- printer_abort
- printer_close
- printer_create_brush
- printer_create_dc
- printer_create_font
- printer_create_pen
- printer_delete_brush
- printer_delete_dc
- printer_delete_font
- printer_delete_pen
- printer_draw_bmp
- printer_draw_chord
- printer_draw_elipse
- printer_draw_line
- printer_draw_pie
- printer_draw_rectangle
- printer_draw_roundrect
- printer_draw_text
- printer_end_doc
- printer_end_page
- printer_get_option
- printer_list
- printer_logical_fontheight
- printer_open
- printer_select_brush
- printer_select_font
- printer_select_pen
- printer_set_option
- printer_start_doc
- printer_start_page
- printer_write
Коментарии
This function may also return NULL on failure, instead of FALSE.