SP_SL_SETLPI

SL_SETLPI()

  Short:
  ------
  SL_SETLPI() Sets the lines per inch for the laserjet

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

  Syntax:
  -------
  SL_SETLPI(nLPI)

  Description:
  ------------
  Sets the lines per inch for the laserjet to <nLpi>
  which  can be:

  1 - 1 line/inch
  2 - 2 line/inch
  3 - 3 line/inch
  4 - 4 line/inch
  6 - 6 line/inch
  8 - 8 line/inch
  12-12 line/inch
  16-16 line/inch
  24-24 line/inch
  48-48 line/inch

  Examples:
  ---------
   cCode := SL_SETLPI(6)     // sets LPI to 6 - the default

   ?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_SETCPI

SL_SETCPI()

  Short:
  ------
  SL_SETCPI() Sets characters per inch

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

  Syntax:
  -------
  SL_SETCPI(nCPI)

  Description:
  ------------
  Sets characters per inch to <nCpi>  - valid to 2
  decimal places. Current font must support this CPI.

  Examples:
  ---------
   ?SL_SETCPI(16.66)   // sets to compressed

   ?SL_SETCPI(12)     // sets to 12 cpi

   ?SL_SETCPI(10)     // sets to 10 cpi  (default)

  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