Monday, December 1, 2008

Tip of the Day: Defining Font Name/Size for OUTPUT PRINTER Command

Supported Versions:

. R:BASE 7.6 for Windows (Build:7.6.5.31125 or higher)
. R:BASE C/S:I 7.6 for Windows (Build:7.6.5.31125 or higher)
. R:BASE Turbo V-8 for Windows (Build:8.0.19.31125 or higher)
. R:BASE eXtreme for Windows (Build:9.0.1.31125 or higher)

Did you know that you can define the font name and size when using
the OUTPUT PRINTER command?

R:BASE 7.x, Turbo V-8, or R:BASE eXtreme (v9.0) allows you to
define font name and font size when using the OUTPUT PRINTER
command at the R> prompt, in a command file or in an EEP used in
Forms, Reports and Labels.

-- Example 01
CONNECT RRBYW14
SET LINES 0
SET WIDTH 120
SET NULL ' '
OUTPUT PRINTER FONTNAME COURIER FontSize 9
  SELECT +
  Company=38 AS `Company Name`, +
  CustAddress=32 AS `Address`, +
  (CustCity+','&CustState&CustZip)=30 AS `City, State and Zip` +
  FROM Customer ORDER BY Company
OUTPUT SCREEN
SET LINES 20
SET WIDTH 79

-- Example 02
CONNECT RRBYW14
SET LINES 0
SET WIDTH 120
SET NULL ' '
OUTPUT PRINTER FONTNAME COURIER FontSize 8
  SELECT +
  Company=38 AS `Company Name`, +
  CustAddress=32 AS `Address`, +
  (CustCity+','&CustState&CustZip)=30 AS `City, State and Zip`, +
  CustPhone=14 AS `Phone Number` +
  FROM Customer ORDER BY Company
OUTPUT SCREEN
SET LINES 20
SET WIDTH 70

Have fun!

Very Best R:egards,

Razzak.


Reply via email to