Jump to content


Photo

Print from PHP


  • Please log in to reply
1 reply to this topic

#1 jayR

jayR
  • Members
  • PipPip
  • Member
  • 26 posts

Posted 08 June 2006 - 12:58 PM

I found a tutorial on this, and used some of there code which is:

<?php
$handle = printer_open("HP LaserJet 4200 PS");
printer_start_doc($handle, "My Document");
printer_start_page($handle);

printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?>

Unfortunatly, the printer will only print a blank page everytime instead of the string "My Document" which I want to print. Has anyone ever messed with this php_printer.dll and had similar problems? I seem to be stuck and I can't find much more on it.

#2 jayR

jayR
  • Members
  • PipPip
  • Member
  • 26 posts

Posted 08 June 2006 - 01:27 PM

Nevermind, I misread what the functions did. I forgot to actually draw the text I wanted to print. [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users