printer_start_page
W32api
Printer Functions
PHP Manual

# printer_write

(PECL printer CVS)

printer_write — Write data to the printer

### Descripción

bool printer_write ( resource `$printer_handle` , string `$content` )

Writes `content` directly to the printer.

### Lista de parámetros

`printer_handle`

  `printer_handle` must be a valid printer handle.

`content`

  The data to be written.

### Valores retornados

Devuelve `TRUE` si todo se llevó a cabo correctamente, `FALSE` en caso de fallo.

### Ejemplos

Example #1 printer_write() example

`<?php
$handle = printer_open();
printer_write($handle, "Text to print");
printer_close($handle);
?>`

printer_start_page
W32api
Printer Functions
PHP Manual