Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
epkhq opened this issue Oct 4, 2021 · 4 comments
Open

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

epkhq opened this issue Oct 4, 2021 · 4 comments

Comments

@epkhq
Copy link

epkhq commented Oct 4, 2021

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

@receiptline
Copy link
Owner

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

よろしくお願いします。

@epkhq
Copy link
Author

epkhq commented Oct 4, 2021

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

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

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

@receiptline
Copy link
Owner

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 の例をご覧ください。

よろしくお願いします。

@epkhq
Copy link
Author

epkhq commented Oct 5, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants