Chapter Contents

Previous

Next
Organizational Chart: _print

Organizational Chart: _print



Prints the current chart, or part of the current chart, and optionally opens the Print window before sending the chart to the printer


Syntax
_print List Items
Details
Tips for Printing Organizational Charts
Example

Syntax

CALL NOTIFY (orgchart-name, '_print'<, print-list>);

Argument Type Description
print-list
N specifies the identifier of an SCL list containing the items in _print List Items. A missing value for any numeric variable is interpreted as 0.

_print List Items
List Item Type Description
'BYPAGE' N a value controlling how the nodes are printed. To print all subtrees that are at the same level as the specified node, one per page if ONEPAGE is true, specify a nonzero value for BYPAGE and a value for NODEID.
'DEVICED' C the description of the print device. If you do not set this value, successive calls use the value specified in the Print window. This item is for information only.
'DEVICEN' C the name of the device to print to, including the SAS/GRAPH print driver. If you do not set this value, successive calls use the value specified in the Print window.
'GSFNAME' C fileref to use for output. See GSFNAME under GOPTIONS.
'GSFMODE' C corresponds to GOPTIONS GSFMODE to either 'REPLACE' or 'APPEND' the output. ('REPLACE' is the default.)
'LEVELS' N the number of tree levels down from the node where printing begins. Specify 0 to print all levels.
'NODEID' N the numeric identifier of the node you wish to begin printing from.If omitted, printing begins at the root of the tree.
'ONEPAGE' N flag indicating whether "fit to page" options are used. Set to 1 to fit to page.
'SETUP' N a value controlling whether the Print window opens:
0 do not open
^= 0 open (default)
'SWAPBW' N a value controlling whether to reverse black and white color interpretation
0 do not reverse
^= 0 reverse


Details

If no list is passed in, the options from the previous call to _printSetup are used. If these options have not been set, the options window will come up automatically.

Tips for Printing Organizational Charts

When you use the _print method, you should consider the following:


Example

This example prints the tree from the last selected node. It also causes the Print window to open. Assigning 0 to SETUP would bypass the Print window.

call notify('org1','_get_selected_',widgetid,
             nodeid);
prlist = makelist(0);
prlist = setnitemn(prlist,nodeid,'nodeid');
         /* <= 0 if none clicked on */
prlist = setnitemn(prlist,1,'setup');
call notify('org1','_print_',prlist);
rc = dellist(prlist);


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.