| Search Locate Previous Next | Contents |
If you also use the RainPro graphics software from Causeway, you might like to include high-quality graphs as part of the finished report. NewLeaf can include a completed Rain graphic, either with a text wrap-around, or scaled to the full width or height of the frame. If the chart does not fit completely into the remaining vertical space, NewLeaf will move automatically to the next frame.
Assuming that you have the charting functions available:
chSet ('heading' 'My Chart')('style' 'nomarkers')
chPlot mydata
chartch.Close
nlUse ''
nlPlace 'Here comes a chart'
nlInclude chart © Scale to frame width
pagenlClose
nlView page
The completed chart has been saved in the variable chart, which includes information such as the fonts used and the bounding box. This is automatically merged into the report, which can be viewed or printed as normal. To have text wrapped around a small chart, set the chart size with chNew 0 0 x y and use nlIncludeLeft to place it.
Note that you canalso include one completed NewLeaf report in another, and so on ad infinitum. This can be used for thumbnails, or to construct booklets from spooled reports.