Search Locate Previous Next Contents

PostScrp.EnumerateCharts – list all charts

Normally, you would use ch.Name to give your charts meaningful names, in which case you should not need this function. However if you allow RainPro to generate default names, you will need to find out what your chart is called before you can use any of the other PostScrp functions to check if you have located a chart element (such as a heading) or a point from a data series.

Assuming that you have drawn your chart(s) on a form called ‘#.pgi’:

      PostScrp.EnumerateCharts '#.pgi'
 XY Plot  chart42743  Sample Barchart

These are the three charts from the Sample function. The first and last have been explicitly named, the second has a generated chart name.

Note that this always returns a vector of names, so you must disclose it if you only have one chart.



Continue to: PostScrp.FindInfo – bounding box of region
© Copyright Causeway Graphical Systems Ltd 2003