TOP PCAT Printer

Generic TextOnly

Vender: Genericにある
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

sequence for a print job is as follows:

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にならないので、たぶんできない。

MFC

WritePrinter/ReadPrinter

ポートとチョイス
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
GetPrinter()
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.

.NET


.NET
Graphics^ g;
g->PageUnit = GraphicsUnit::Millimeter;

IEEE 1284

プロトコル・モード

コンパチブルモード SPP セントロニクス,標準 単方向
ニブルモード Bitronics(HP) 単方向 データ通信にステータスラインを用い、デバイスに4ビットデータ送信,拡張プリンタステータス取得
バイトモード データラインを使って8bit送信
Enhanced Prallel Port EPP 半二重双方向
Extended Capability Port ECP 半二重双方向 RLE圧縮

Port Pin Layout

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 /
  +------------------------------------+
  • twitter
  • livedoor クリップ
  • はてなブックマーク
  • delicious
  • Yahoo! ブックマーク
  • niftyブックマーク
  • Buzzurl

Wikiをはじめる

マイページ