Search Locate Previous Next Contents

How to Include Graphs

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:

ch.Set ('heading' 'My Chart')('style' 'nomarkers')
ch.Plot mydata
chart„ch.Close
leaf.Use ''
leaf.Place 'Here comes a chart'
leaf.Include chart            © Scale to frame width
page„leaf.Close
leaf.View 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 ch.New 0 0 x y and use leaf.IncludeLeft 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.



Continue to: How to Mark Text as Bold or Italic
© Copyright Causeway Graphical Systems Ltd 2001