SP_SL_RIGHTMARG

SL_RIGHTMARG()

  Short:
  ------
  SL_RIGHTMARG() Sets the right margin to the right edge of the
  specified column

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_RIGHTMARG(nCol)

  Description:
  ------------
  Sets the right margin to the right edge of the
  specified column <nCol>

  Examples:
  ---------
   ?SL_RIGHTMARG(70) // sets right margin to 70

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

SP_SL_RESET

SL_RESET()

  Short:
  ------
  SL_RESET() Resets the printer to user defaults

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_RESET()

  Description:
  ------------
  Resets the printer to user defaults

  Examples:
  ---------
   ?SL_RESET()

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

 

SP_SL_PUSHCURS

SL_PUSHCURS()

  Short:
  ------
  SL_PUSHCURS() Pushes the printer cursor position for later
  popping

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_PUSHCURS()

  Description:
  ------------
  Pushes the current printer cursor position for later
  retrieval (popping) with SL_POPCURS(). Up to 20 positions may be pushed.

  Examples:
  ---------
   ?SL_PUSHCURS()

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

 

SP_SL_PORT

SL_PORT()

  Short:
  ------
  SL_PORT() Sets the laserjet orientation to PORTRAIT

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_PORT()

  Description:
  ------------
  Sets the laserject orientation to PORTRAIT

  Examples:
  ---------
   cSetup := SL_PORT()

   ?cSetup

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

 

SP_SL_POPCURS

SL_POPCURS()

  Short:
  ------
  SL_POPCURS() Pops the printer cursor position for later popping

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_POPCURS()

  Description:
  ------------
  Pops the current printer cursor position pushed by
  with SL_PUSHCURS(). Up to 20 positions may be POPed.

  Examples:
  ---------
   ?SL_POPCURS()

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

 

SP_SL_PAGESIZE

SL_PAGESIZE()

  Short:
  ------
  SL_PAGESIZE() Sets the page size on the laserjet

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_PAGESIZE(nSize)

  Description:
  ------------
  Sets the page size on the laserjet where <nSize> is
  one of the following:

       1 Executive          (7.25" x 10.5")
       2 Letter                 (8.5" x 11")
       3 Legal                  (8.5" x 14")
      26 A4                     (210mm x 297mm)
      80 Monarch Envelope   (3 7/8" x 7 1/2")
      90 COM-10 Envelope    (4 1/8" x 8 1/2")
      91 International C5   (162mm  x 229mm)

  Examples:
  ---------
   cCode := SL_PAGESIZE(2)  // letter size
   ?cCode
   cCode := SL_PAGESIZE(3)  // legal  size
   ?cCode
   cCode := SL_PAGESIZE(26)  // A4 size
   ?cCode

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG

 

SP_SL_OVERCOL

SL_OVERCOL()

  Short:
  ------
  SL_OVERCOL() Move the printer cursor right/left # columns
  relative to position

  Returns:
  --------
  cCode => control string to send to the printer

  Syntax:
  -------
  SL_OVERCOL(nColumns)

  Description:
  ------------
  Move print head left/right <nColumns>. A negative
  number means move left, a positive number means move right.

  Actual end position will depend on CHARACTERS PER
  INCH settings.

  Examples:
  ---------
   ?SL_OVERCOL(10)

   ??"Hello world"

   ?SL_DOWNROW(-1)    // moves to prior row

   ?SL_OVERCOL(-11)   // and back to starting column

   ??"Attention:"

  Notes:
  -------
  Does not send anything to the printer - instead
  returns a control string that you send to the printer. String can be
  sent with ? or ?? or  QOUT() or QQOUT().

  For HP and compatible(PCL) Laserjet printers.

  Source:
  -------
  S_HPLAS.PRG