TOP PCAT Printer
ReadPrinterはGenericは双方向サポートのチェックボックスがEnableにならないので、たぶんできない。
Vender: Genericにある
Property 詳細設定TABでスプールをはずす。さらに標準設定ボタンを押して用紙品質TABで、給紙方法で連続給紙、改ページなしを選択
Property 詳細設定TABでスプールをはずす。さらに標準設定ボタンを押して用紙品質TABで、給紙方法で連続給紙、改ページなしを選択
| Name | I/O | D25 pin | |
| BUSY | I | 11 | GND |
| PERROR | I | 12 | GND |
| SELECT | I | 13 | NC(P.U.) |
| /STROBE | O | 1 | loopback |
| /ACK | I | 10 |
| begin a print job | StartDocPrinter | ctor |
| begin each page, | StartPagePrinter | Repeat for as many pages as necessary EndPage will sed data to printer |
| write data to a page | WritePrinter | |
| end each page | EndPagePrinter | |
| end the print job | EndDocPrinter | dtor |
ReadPrinterはGenericは双方向サポートのチェックボックスがEnableにならないので、たぶんできない。
WritePrinter/ReadPrinter
ポートとチョイス
How to programmatically print to a non-default printer in MFC
実際のシステムで定義された既定のプリンター以外に、Microsoft Foundation クラス (MFC) アプリケーションの「既定」のプリンターを変更する方法
DEVNAMES
DEVMODE
OpenPrinter
CWinApp::SelectPrinter
CPrintInfo 構造体
WritePrinter
ReadPrinter
The ReadPrinter function call is always preceded by a call to the StartDocPrinter call. If you set the dwMode member of the DOC_INFO_2 structure to DI_READ_SPOOL_JOB before making the StartDocPrinter function call, the subsequent ReadPrinter function call will read the spool file identified in the pOutput member of the DOC_INFO_2 structure instead of reading status information from the bidirectional printer your print processor is associated with.
How to programmatically print to a non-default printer in MFC
実際のシステムで定義された既定のプリンター以外に、Microsoft Foundation クラス (MFC) アプリケーションの「既定」のプリンターを変更する方法
- Whether you need to use the non-default printer on a permanent basis or for only one print job, you need the DEVMODE and DEVNAMES structure to create the printer DC.
- The PRINTER_INFO_2 structure from GetPrinter() contains all the information needed to fill the DEVMODE and DEVNAMES structures.
- setup Vender:Generic Printer:TextOnly at LPT1
DEVNAMES
DEVMODE
OpenPrinter
CWinApp::SelectPrinter
CPrintInfo 構造体
WritePrinter
ReadPrinter
The ReadPrinter function call is always preceded by a call to the StartDocPrinter call. If you set the dwMode member of the DOC_INFO_2 structure to DI_READ_SPOOL_JOB before making the StartDocPrinter function call, the subsequent ReadPrinter function call will read the spool file identified in the pOutput member of the DOC_INFO_2 structure instead of reading status information from the bidirectional printer your print processor is associated with.
ASP.NET2.0環境でWebBrowserを利用してブラウザイメージをキャプチャするサンプル
縦に長いwebページをキャプチャする
表示したWebページ全体をキャプチャしたい
ブラウザイメージのキャプチャー方法
通常使うプリンターを取得及び設定する
Visual C# .NET を使用して生のデータをプリンターに送信する方法
How To Connect a USB TO IEEE 1284 Parallel Printer Cable To Visual Studio
Wire BUSY (pin 11) to any Ground (pins 19-29)
Wire SELECT (pin 13) to +5V (should be pin 18 but test)
Wire STROBE (pin 1) to ACK (pin 10)
縦に長いwebページをキャプチャする
表示したWebページ全体をキャプチャしたい
ブラウザイメージのキャプチャー方法
通常使うプリンターを取得及び設定する
Visual C# .NET を使用して生のデータをプリンターに送信する方法
How To Connect a USB TO IEEE 1284 Parallel Printer Cable To Visual Studio
Wire BUSY (pin 11) to any Ground (pins 19-29)
Wire SELECT (pin 13) to +5V (should be pin 18 but test)
Wire STROBE (pin 1) to ACK (pin 10)
プロトコル・モード
| コンパチブルモード | SPP | セントロニクス,標準 | 単方向 | |
| ニブルモード | Bitronics(HP) | 単方向 | データ通信にステータスラインを用い、デバイスに4ビットデータ送信,拡張プリンタステータス取得 | |
| バイトモード | データラインを使って8bit送信 | |||
| Enhanced Prallel Port | EPP | 半二重双方向 | ||
| Extended Capability Port | ECP | 半二重双方向 | RLE圧縮 |
| Pin | Name | Dir | Description |
| 1 | /STROBE | O | Strobe |
| 2 | D0 | O | Data Bit 0 |
| 3 | D1 | O | Data Bit 1 |
| 4 | D2 | O | Data Bit 2 |
| 5 | D3 | O | Data Bit 3 |
| 6 | D4 | O | Data Bit 4 |
| 7 | D5 | O | Data Bit 5 |
| 8 | D6 | O | Data Bit 6 |
| 9 | D7 | O | Data Bit 7 |
| 10 | /ACK | I | Acknowledge |
| 11 | BUSY | I | Busy |
| 12 | PE | I | Paper End |
| 13 | SEL | I | Select |
| 14 | /AUTOFD | O | Autofeed |
| 15 | /ERROR | I | Error |
| 16 | /INIT | O | Initialize |
| 17 | /SELIN | O | Select In |
| 18-25 | GND | Signal Ground |
+-----------------------------------------+ \ 13 12 11 10 9 8 7 6 5 4 3 2 1 / \ 25 24 23 22 21 20 19 18 17 16 15 14 / +------------------------------------+


最新コメント