有人可以帮忙吗?
嗨,我使用“EPSON TM-T82II Receipt”打印账单。我使用 php 代码
<?php
require_once(dirname(__FILE__) . "/Escpos.php");
try {
$connector = null;
$connector = new WindowsPrintConnector("EPSON TM-T82II Receipt");
/* Print a "Hello world" receipt" */
$printer = new Escpos($connector);
$printer -> text("Hello World!\n");
$printer -> cut();
/* Close printer */
$printer -> close();
} catch(Exception $e) {
echo "Couldn't print to this printer: " . $e -> getMessage() . "\n";
}
Iam getting this error "Couldn't print to this printer: Printer
“EPSON TM-T82II 收据”无效。使用本地端口(LPT1、COM1 等)或 smb://computer/printer 表示法。"