Hi
I want to print to a Seiko SLP 220 printer from PHP (printer is
connected to COM1; and works fine via the Seiko label print
application program).
I've tried code like :
$str = "Sample Test Label" . $cr . $lf . $esc . "Z";
$fp = fopen("COM1:", "w+");
fputs($fp, $str);
fclose ($fp);
(with $cr, $lf, $esc defined earlier in the program) but without
success - the printer will form feed, but nothing prints.
Any ideas on how to print directly to the printer successfully ?
Is it possible to print to the printer via the OS - Windows XP ?
thanks for any advice
Gerry
Dublin, Ireland
I want to print to a Seiko SLP 220 printer from PHP (printer is
connected to COM1; and works fine via the Seiko label print
application program).
I've tried code like :
$str = "Sample Test Label" . $cr . $lf . $esc . "Z";
$fp = fopen("COM1:", "w+");
fputs($fp, $str);
fclose ($fp);
(with $cr, $lf, $esc defined earlier in the program) but without
success - the printer will form feed, but nothing prints.
Any ideas on how to print directly to the printer successfully ?
Is it possible to print to the printer via the OS - Windows XP ?
thanks for any advice
Gerry
Dublin, Ireland
Comment