G'day guys,
I am on Win2000 server thingy, and i am getting started with the printer functions .
My problem is :
When i do this , the printer prints :
<?php
$handle = printer_open();
printer_write($handle, "Texte d'impression");
printer_close($handle);
?>
When i do this, the printer doesn't print anything :
<?php
$handle = printer_open();
printer_start_doc($handle, "My Document");
printer_start_page($handle);
$pen = printer_create_pen(PRINTER_PEN_SOLID, 2, "000000"); printer_select_pen($handle, $pen);
$brush = rinter_create_brushPRINTER_BRUSH_SOLID, "2222FF");
printer_select_brush($handle, $brush);
printer_draw_elipse($handle, 1, 1, 500, 500); printer_delete_brush($brush);
printer_delete_pen($pen);
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?>
Do you know why ? am i missing something ?
I have been trying to find some info for a couple of hours but nothing turned up to help me.
Also, last question, is it possible to format HTML documents and send them to the printer this way ?
Thanks guys !!!
Cyrille