receiptline / receiptline

Markdown for receipts. Printable digital receipts. Generate receipt printer commands and images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

リモートで店舗側のプリンタを印刷させるか

epkhq opened this issue · comments

commented

お世話になっております。
receiptlineを使って、店舗タッチパネル発券機能を開発したいと考えております。
一点確認させてください。
店舗タッチパネルで発券すると、情報をリモートnode.jsサーバに送って、そこで処理したデータを店舗側のレシートプリンタに印刷させるということを実現できますでしょうか。サンプルを確認したところ、プリンタ情報はnode.jsサーバに存在し、リモートネットワークに存在しているプリンタを印刷させることは無理ではないかと思います。
また、receiptlineにプリンタコマンドを生成する機能があり、上記の場合、この機能を使って、店舗側のプリンタのプリンタコマンドを生成し、店舗タッチパネルに返して、そのコマンドでプリンタに印刷させるという手段があるかと思いますが、認識があってますでしょうか。
長々と失礼しました、ご確認を宜しくお願い致します。

Hello!

You can run receiptline server-side to generate the commands, then download this commands on your tablet device and send it to your printer. Alternatively, you can use a printer that has cloud printing capability to get this commands.

Thank you very much.

こんにちは。

receiptlineをサーバー側で実行してコマンドを生成し、そのコマンドをタブレット端末にダウンロードしてプリンターに送信することができます。あるいは、クラウドプリント機能を備えたプリンターを使って、このコマンドを取得することもできます。

よろしくお願いします。

commented

ご連絡ありがとうございます。(英語ができなくて、申し訳ございません)

ご回答内容を理解しました。追加一点ですが、
そのコマンドをプリンタに送信する機能はreceiptlineの範囲外で、各プリンターメーカーのSDKを使って実現するという認識でよろしいでしょうか。

お忙しいところ恐縮ですが、ご確認を宜しくお願い致します。

You can use any method to send the commands generated by receiptline to the printer.
To send the commands using the SDK, you may need to remove the initialization at the beginning of the command.
See the receiptline/example/cloud/*.js examples.

Best regards.

receiptlineで生成されたコマンドをプリンターに送信するには、どのような方法でも構いません。
SDKを使用してコマンドを送信するには、コマンドの先頭にある初期化を削除する必要がある場合があります。
receiptline/example/cloud/*.js の例をご覧ください。

よろしくお願いします。

commented

ご回答ありがとうございます。
上記のことを理解しました。ありがとうございました。