By: Jonathan Hill
Date: 2016-12-12
Time: 18:27
|
Adding arbitrary titles to charts to target specific charts using $TBS->PlugIn(OPENTBS_CHART...
Hello,
I'm trying to change data of charts using $TBS->PlugIn(OPENTBS_CHART, $chartName, $SeriesNameOrNum, $newValues, $newLegend);. It would appear (and I may be wrong) that you can't use the title assigned to the chart in Word to target the chart. i.e if I have a chart with the title 'My Wonderful Chart' in Word, $TBS->PlugIn(OPENTBS_CHART, 'My WonderFul Chart', $SeriesNameOrNum, $newValues, $newLegend) does not work. I am applying a title to my charts in Word by going to Design > Add Chart Element > Chart Title etc. I am having to do $TBS->PlugIn(OPENTBS_DEBUG_INFO) and getting the names of the charts that way and what I am seeing is the sequentially assigned chart names given by OpenTBS. This is awkward for me because I have a doc with many different charts on it which will be having charts added and removed all the time so I'm assuming the sequentially assigned chart names will change.
So is there a way of referencing a title which has been assigned by myself from within word?
Thanks
|
By: Skrol29
Date: 2016-12-13
Time: 23:16
|
Re: Adding arbitrary titles to charts to target specific charts using $TBS->PlugIn(OPENTBS_CHART...
Hello,
The title of the chart and the title of the area of the chart are two different things.
OpenTBS uses the title of the area, not the title of the chart.
However, when you edit the title of the chart by the way you describe, this also change the title of the area.
To edit the title of the area of the chart:
- select the chart area,
- in the contextual menu, choose "Format Chart Are", then tab "Text and replacement", you have the title of the area.
This will not change the title of the chart.
|