You can print from PHP !

The scrip below will print a bmp.

It requires you to enable php_printer.dll in your php.ini file

The printer handle must be the same, as the shown printer name, in the
printers folder (win)

For more info look here :- http://uk.php.net/manual/en/ref.printer.php

<?
$printerhandle = @printer_open("HP OfficeJet Pro 1170C");
$filename = "test.bmp";
printer_set_option($printerhandle, PRINTER_MODE, "EMF");
printer_start_doc($printerhandle, "Image Print");
printer_start_page($printerhandle);
printer_draw_bmp($printerhandle, $filename, 1, 1);
printer_end_page($printerhandle);
printer_end_doc($printerhandle);
printer_close($printerhandle);
?>


If you mean to have the user print to a paper printer what he sees in
his web browser then that has nothing to do with PHP.

Printing from a web browser is controlled by the web browser. PHP cannot
affect the way a web browser prints.

Did I understand you question correctly?

Jean-Christian Imbeault



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to