lightning_young Posted June 18, 2008 Share Posted June 18, 2008 The following code works fine: <?php $handle = printer_open("HP LaserJet 1"); printer_start_doc($handle, "Document"); printer_start_page($handle); $font = printer_create_font("Arial", 90, 40, 350, false, false, false, 0); printer_select_font($handle, $font); printer_draw_text($handle, "test", 50, 1000); printer_end_page($handle); printer_end_doc($handle); printer_close($handle); ?> This means all is setup and working fine as far as php_printer.dll goes. As soon as I change to another printer (A new hp P2015) I get errors as follows: Warning: printer_start_doc() [function.printer-start-doc]: couldn't allocate new print job in C:\php_print.php on line 4 Warning: printer_start_page() [function.printer-start-page]: couldn't start a new page in C:\php_print.php on line 5 Warning: printer_end_page() [function.printer-end-page]: couldn't end the page in C:\amtecsonline\php_print.php on line 10 Both printers are HP although different models, both configure and working from windows. The page spools for a second then disapears. Any help in this matter would be a massive help! Regards, Olly Link to comment https://forums.phpfreaks.com/topic/110765-problem-with-php_printerdll/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.