Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : PRINTTABLE

PRINTTABLE
Prints a table. (C)
Invocation
CALL PRINTTABLE(tablespec, pagelength, pagewidth, media)
 
An integer specifying the number of columns to use on the page. This value is usually 80 for a screen; it can be greater, as some printers can handle 132. NOTE: Fields that do not fit within a page are not printed.
Usage Notes
You must declare the local variable MSG. It contains a message indicating if the table printed successfully or why it did not print successfully.

Exceptions
 
Example
The following rule prints the table instance 01 of the EMPLOYEE_EXPENSE table and displays the result in the message log:

 
PRINTTABLE_1;
LOCAL MSG;
     _ ------------------------------------------------------------+-------
_ ------------------------------------------------------------+-------
_ CALL PRINTTABLE('EMPLOYEE_EXPENSE(01)', 60, 132, 'SCR'); | 1
_ CALL ENDMSG(MSG); | 2
_ --------------------------------------------------------------------
_ ON NO_PRINT :
_ CALL ENDMSG(MSG);

 
The end message contains the following:
12:43:23 printed EMPLOYEE_EXPENSE(01)
Output from the PRINTTABLE_1 Rule
Pressing PF2 after executing the rule displays the following screen:

 
Printing Table: EMPLOYEE_EXPENSE(01) Page 1.1
EMPNO LNAME POSITION MGR# DEPTNO MON_EXP
------- ---------------------- -------------- ------- ------ -------
80000 SMYTHE Director 80002 20 2204.95
80002 ROTERDAM VP 99999 50 1411.90
80003 CHANG Assoc. Analyst 83020 10 0.00
80004 GARZA Analyst 80009 30 0.00
80014 TOWNSEND President & GM 84021 70 2859.02
80019 PASTARINA Mgr 80033 50 0.00
80020 CHESSEL Secretary 83020 30 0.00
80021 TOWENSEND Receptionist 84021 50 0.00
80024 NAPIER Sales Person 80020 20 377.73
80033 CANON Programmer 80020 40 0.00
81000 NELSON Daycare Mgr 80002 60 0.00
81001 CAREY Secretary 81092 40 0.00
81003 CHIU VP 81033 40 960.26
81014 LYNGBAEK Mgr 84021 40 93.45
81019 KINGSON CEO 81092 50 1381.19

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved