home *** CD-ROM | disk | FTP | other *** search
- ..pgno01
- ..foot60A4-##
- ..head02L──────────────────────────────────────────────────────────────────────
- ..head04L──────────────────────────────────────────────────────────────────────
- ..head03ABiosPrtChar
- ■ Description
-
- Send a character to the printer.
-
-
- ■ Summary
-
- Procedure BiosPrtChar( Ch : Char; PrtNo : Integer );
-
- Ch character to be printed.
-
- PrtNo printer number of printer to print to.
-
-
- ■ Remarks
-
- PrtNo 1 = LPT1:
- PrtNo 2 = LPT2:
- PrtNo 3 = LPT3:
-
-
- ■ See Also
-
- BiosPrtStat, DosPrtChar
-
-
- ■ Example
-
- Program Example;
- Uses FPPrt;
- Var
- i : Integer;
- Begin
- For i := 1 To 80 Do
- BiosPrtChar( 'A', 1 );
- End.
-
- Here PrtChar will print the letter A out to printer one 80 times.
- ..page
- ..head03ABiosPrtInit
- ■ Description
-
- Initialize the printer
-
-
- ■ Summary
-
- Function BiosPrtInit( PrtNo : Integer ) : Integer;
-
- PrtNo number of printer to initialize.
-
-
- ■ Remarks
-
- This functions returns the status of the printer after the
- initialization process is completed.
-
-
- ■ Example
-
- Program Example;
- Uses FPPrt;
- Begin
- If ( BiosPrtInit( 1 ) And 16 ) <> 0 Then
- Writeln( 'Printer initialized' );
- End.
-
- The printer that is hooked up to the first parallel port will be
- initialized. (Refer to BiosPrtStatus for a description of the
- printer status byte).
- ..page
- ..head03ABiosPrtStatus
- ■ Description
-
- Returns the current status of the printer.
-
-
- ■ Summary
-
- Function BiosPrtStat( PrtNo : Integer ) : Integer;
-
- PrtNo is an integer representing the printer number to check
- the status for.
-
-
- ■ Remarks
-
- PrtStatus will return an integer giving the status of the printer
- using the following bit values.
-
- Bit Value Meaning
- ─── ───────── ───────────────────────────
- 0 - 1 - Time-out
- 1 - 2 - Not used
- 2 - 4 - Not used
- 3 - 8 - I/O error
- 4 - 16 - Printer selected
- 5 - 32 - Out-of-paper signal
- 6 - 64 - Acknowledgment from printer
- 7 - 128 - Printer not busy
-
-
- ■ Example
-
- Program Example;
- Uses FPPrt;
- Begin
- If ( BiosPrtStatus( 1 ) And 128 ) <> 0 Then
- BiosPrtchar( 'A', 1 );
- End.
-
- If printer one is not busy then the letter A will be sent out to
- printer one.
- ..page
- ..head03ADosPrtChar
- ■ Description
-
- Send a character to the printer.
-
-
- ■ Summary
-
- Procedure DosPrtChar( Ch : Char );
-
- Ch character to be printed.
-
-
- ■ See Also
-
- BiosPrtChar, BiosPrtStat
-
-
- ■ Example
-
- Program Example;
- Uses FPPrt;
- Var
- i : Integer;
- Begin
- For i := 1 To 80 Do
- DosPrtChar( 'A' );
- End.
-
- Here PrtChar will print the letter A out to printer one 80 times.
- ..page
-