Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here by working example (* + Print.Dll and on a Win 7 OS ) </p> <pre><code> &lt;?php # DEMO PRINTER //http://fr.php.net/manual/en/function.printer-write.php /* $_SESSION['PrintBuffer']=''; //printer buffer print_sub_1(); print_sub_2(); print_sub_3(); $_SESSION['PrintBuffer'] */ $Printer_name = $_GET['Printer']; $text = $_GET['value']; $text = str_replace( "-"," ", $text); $text = str_replace( "/r/n"," \r\n , ", $text); // replace and make string Array $lineofText = explode(',',$text); // Array to stand to for # Examples // testing font //echo printer_logical_fontheight($printer, 72); //printer_set_option($printer, PRINTER_MODE, "RAW"); $handle = printer_open($Printer_name); // Open Pritner by Name printer_set_option($handle, PRINTER_MODE, "raw"); //printer_set_option($handle, PRINTER_TEXT_ALIGN, PRINTER_TA_LEFT); printer_start_doc($handle, " Print"); // Name Document printer_start_page($handle); // Start Logo printer_draw_bmp($handle, "c:\\logo.bmp", 60, 0); // Logo Dir, lenght H , With V printer_end_page($handle); // End Logo printer_start_page($handle); // Text $asize=sizeof($lineofText); // Make NewLine per Array for($i=0; $i&lt;$asize; $i++) { printer_draw_text($handle, $lineofText[$i],1,1); } printer_end_page($handle); // End Text //printer_start_page($handle); // Start Logo QR //printer_draw_bmp($handle, "c:\\QR.bmp", 60, 0); // Logo Dir, lenght H , With V //printer_end_page($handle); // End Logo QR printer_end_doc($handle); // Close document printer_close($handle); // Close Pritner ?&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload