a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Devices:
 printer.device
  --background--
  CMD_FLUSH
  CMD_INVALID
  CMD_RESET
  CMD_START
  CMD_STOP
  CMD_WRITE
  CallErrHook
  PBothReady
  PQuery
  PRD_DUMPRPORT
  PRD_DUMPRPORTTAGS
  PRD_EDITPREFS
  PRD_PRTCOMMAND
  PRD_QUERY
  PRD_RAWWRITE
  PRD_READPREFS
  PRD_SETERRHOOK
  PRD_WRITEPREFS
  PRead
  PWrite
Include
GuruMeditation
Docs » Autodocs » printer.device » PRD_PRTCOMMAND

NAME

       PRD_PRTCOMMAND -- send a command to the printer

FUNCTION

      This function sends a command to either the parallel or serial
device. The printer device maps this command to the control
code set of the current printer. The commands supported can
be found with the printer.device/Write command. All printers
may not support all functions.
IO REQUEST IOPrtCmdReq
io_Message mn_ReplyPort set
io_Device preset by OpenDevice
io_Unit preset by OpenDevice
io_Command PRD_PRTCOMMAND
io_PrtCommand the actual command number
io_Parm0 parameter for the command
io_Parm1 parameter for the command
io_Parm2 parameter for the command
io_Parm3 parameter for the command

RESULT

       Errors: if the PRD_PRTCOMMAND succeeded, then io_Error will be zero.
Otherwise io_Error will be non-zero. An error of -1 indicates that
the command is not supported by the current printer driver. This
could be used to check if the connected printer supports a particular
command (italics for example).

SEE ALSO

printer.device/PWrite() printer.h, parallel.device(), Preferences

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Paradox

TBL
DC
PDX
AYS

Comments:

$VER: d0.se 1.14 Copyright © 2011-2023 Tobias Geijersson support at d0 dot se