| Search Locate Next | Contents |
What you get
NewLeaf is shipped as a Dyalog APL workspace, a help file, a collection of phrasebook files for the viewer, a handy reference, and this manual. You can simply copy the workspace to your normal development directory, along with the help file. If you have CausewayPro installed, you might prefer to put the help file with the other Causeway tools, for example in \dyalog\outprods\causeway. Make sure that the [Paths] section in causeway.ini points to the correct directory if you do this (causeway.ini is in the Windows directory).
Checking it out
To ensure your copy is correctly installed, load the workspace and type Test. This will build quite a complex report, with an embedded chart and table. When it completes, run View PG to see the result. You might like to try some of the other examples listed in the welcome message, for example Caps (to check Drop Caps) and John (to check for scandics). You can also check the page designer run Layout.Design 'xx' and press F1 to make sure the help file can be located.
What you need in your application
The essential NewLeaf code is all held in two namespaces, so to make it available to your application code, simply copy them:
)xload myapp
)copy newleaf leaf PostScrp
A simple health check would be to run a short report:
leaf.Init
leaf.Use ''
leaf.Place 234 12½'Fat cat. '
leaf.Rule 3
View leaf.Close
This will make a default layout, and should have 1 margins all around, with page numbers centred at the foot. Use the Print Page button in the viewer to print it on your default printer, and check that all the elements appear correctly. If this all worked, you are clear to start working through the tutorials!