問題タブ [dot-matrix]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
2 に答える
1636 参照

vhdl - 文字「R」の 5x7 ドット マトリックス表示の単純な VHDL コードを手伝ってくれる人はいますか?

これは私が使用しているコードですが、列と行がどのように変化しているかを確認するには、クロックを遅くする必要があります。クロッキングに問題があると思います:

編集: コードのインデントを修正した後、いくつかのテキストを追加する必要がありました。

0 投票する
0 に答える
1479 参照

java - ドット マトリックス プリンタで Java 印刷を使用してカスタム ページ サイズを設定できない

ドットマトリックスプリンターでJavaを介して印刷しようとしています。カスタム サイズの Paper オブジェクトを作成しました。ただし、プリンターに行くと、カスタムサイズはかかりません。11インチまたは12インチのサイズがあります。以下は、使用しているコードです。解決策を提案してください。

0 投票する
1 に答える
1607 参照

php - PHP を使用してプリンター ドット マトリックスを介して印刷する可能性

PHPでプリンターのドット/ジェットマトリックスを使用して請求書を印刷できる可能性はありますか? また、PHP はバーコード リーダーを検出できますか? または単純な方法で、入力テキストのみを提供し、バーコードリーダーでスキャンすると、テキストを直接入力して自動的に入力しますか?

0 投票する
1 に答える
3266 参照

java - エプソンのドットマトリックスプリンターで画像や線を印刷する方法

ドットマトリックス プリンターを使用して表を印刷しようとしましたが、うまくいきましたが、テキストの品質は非常に悪かったです。だから私は単純な FileWriter を使用してそれを印刷しようとしました:

問題は、(表を作成するために) 画像と線も印刷したいということです。テキストの品質を損なうことなくこれを行うにはどうすればよいですか。

0 投票する
0 に答える
875 参照

java - Java 印刷 Dotmatrix プリンターが紙送りを停止しない

Java PrintService を使用して Java で請求書を印刷したいと考えています。FileOutputStream を使用してファイルを作成しています。私のプリンターはtvs msp star 250プリンター(ドットマトリックス)です。"\f" と (char)12 を試して、doc、txt、および rtf のファイルに改ページ (改ページ) 文字を設定しました。しかし、いずれの場合も、私のプリンターは請求書ともう 1 ページの空白ページを印刷します。

私のソースコード:

0 投票する
0 に答える
568 参照

vb.net - TVS MSP240 ドット マトリックス プリンター用紙ロールバック

VB.NET でTVS MSP240ドット マトリックス プリンタを使用 していますが、印刷に問題があります。

用紙サイズは 6x4 です。ただし、このサイズで印刷すると不完全なテキストになりますが、6x5 では完全なテキストが得られます。

しかし、このアプローチでは、紙が 1 インチ余分にスクロールします。紙を1インチ後ろにスクロールする方法はありますか?

0 投票する
1 に答える
1966 参照

distance - How to preserve data alignment in dot matrix printing no matter the character size (pitch)

I print text into a dot matrix printer using the generic text only driver and I manage to align data on paper's columns using one space character for every empty printing character on the 135 characters wide paper. This works on 10CPI in the sense that data is at the columns where they should be but not if user selects other character size like 17CPI for example. On the latter case alignment is preserved but data do not sit in the expected place. For instance a character that is supposed to be in place 120 on the line (the 120th character),while on 10CPI it prints indeed there, towards the end of the line, on 17CPI it prints in the middle of the paper.

I understand that this happens because the actual space characters that I use between columns is smaller on 17CPI.

So, my questions are:

1) should I go ahead and use more than one space character whenever the pitch is greater than 10CPI? I could test on that but it seems not a good practise. Or should I try to use absolute horizontal position with the appropriate esc commands? Yet, this is not recommended according to the escp2 manual.

2) should I send \r\n inside the string that I send to the printer for each line of data or should I send just the line of data and at the end of it the escp2 command CR?

Thanks in advance.