TinyButStrong - the PHP Template Engine
Categories > OpenTBS with PPTX >

Re: Embedded Excel in powerpoint for a chart

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs

By: edier
Date: 2016-04-30
Time: 00:35

Re: Embedded Excel in powerpoint for a chart

hi, can you help me?

I need modify the embed chart. in  "ppt/charts/chart1.xml". what do you do to fixed?

Demo runs ok, but when I need Edit data in the chart over demo.pptx it is missing.

my code is the sample in demo.
// Merge a chart
$ChartRef = 'my_chart'; // Title of the shape that embeds the chart
$SeriesNameOrNum = 1;
$NewValues = array( array('Cat. A','Cat. B','Cat. C','Cat. D'), array(0.7, 1.0, 3.2, 42.8) );
$NewLegend = "Merged";
$TBS->PlugIn(OPENTBS_CHART, $ChartRef, $SeriesNameOrNum, $NewValues, $NewLegend);


thanks for all you cooperation.
By: Skrol29
Date: 2016-05-10
Time: 01:03

Re: Embedded Excel in powerpoint for a chart


> Demo runs ok, but when I need Edit data in the chart over demo.pptx it is missing.

The data is not missing in the template, but it is missing in the result of the merge.
This is because Powerpoint stores a copy of the chart's data in an Excel sub-file embedded in the PPTX (the Excel that appears when you edit data in the chart of the PPTX).
But OpenTBS cannot edit this Excel sub-file. Since is becomes inconsistent with the modified chart, then OpenTBS delete the Excel sub-file.
By: edier
Date: 2016-05-10
Time: 18:00

Re: Embedded Excel in powerpoint for a chart

thanks a lot.