Reflection Command Language (RCL) is a scripting language used in older versions of Reflection to implement host-initiated commands that allow host programs to control Reflection. Reflection for the Web has implemented a subset of RCL commands to facilitate interaction with existing Reflection for HP installations.
The information presented here is intended to augment existing RCL documentation.
Reflection for the Web supports $ expansion of RCL commands received from the host. In addition to ${0-9}, the following $ variables are supported:
Variable |
Result |
---|---|
$DATE |
Returns the current date (MM-DD-YYYY) |
$DAY |
Returns 0 (Sunday) through 6 (Saturday) indicating the day of the week. |
$DIR |
Returns the path to the USER_HOME folder for the client machine running the HP session.1 |
$SERIAL |
Returns the Reflection for the Web serial number. Example: J01-VVVL456789 (where VVV is the version number). |
$TIME |
Returns the current time (HH:MM:SS.CC). |
$UPI |
Returns the Reflection unique product identifier. |
1USER_HOME varies according to operating system, browser, and VM. To find the home folder for a given operating system/browser/virtual machine combination, look for USER_HOME in the Java console.
Reflection for the Web supports the CLOSE PRINTER, OPEN PRINTER, LET, LOG, SET, and TRANSFER commands.
NOTE:Reflection for the Web ignores the QUIET and CONTINUE commands (returns a success completion code, but does nothing). Any other unrecognized RCL command will result in a failure completion code (unless completion codes are disabled or are not requested by the host).
CLOSE
The CLOSE PRINTER command closes the printer as a "to" device. CLOSE PRINTER has no effect if the printer is already closed.
OPEN
Reflection for the Web supports the OPEN PRINTER command.
LET
LET assigns a string, number, or logical value to a variable. By default, variables V0 through V9 are available and each variable can contain a 0 to 80 byte string. Strings longer than 80 bytes will be truncated.
Use the SET VARIABLES command to change the number of variables supported. Use the SET VARIABLE-LENGTH command to change the allowable variable length.
LOG
The LOG command sends, or logs, incoming data to the printer. Use LOG without any options to turn logging on; use LOG OFF to turn logging off.
SET
SET commands are used to configure Reflection. See Supported SET Parameters.
TRANSFER
The TRANSFER command does a type 3 block transfer to the host. Either a string or the value of a SET command can be transferred.
Use the alphabetical index on this page to locate SET parameters supported by Reflection for the Web. Common synonyms for parameters are shown in parenthesis.
A-B-C | D-E-F | G-H-I | J-K-L | M-N-O | P-Q-R | S-T-U | V-W-X