By: Alejandro
Date: 2012-10-20
Time: 19:05
|
Replacement only in first slide of powerpoint
HI, I've solved my previous problem and now it's working properly, but I have a multiple slides in my powerpoint but text it's only replaced in the first slide
any clue?
Thx again
|
By: Skrol29
Date: 2012-10-20
Time: 22:40
|
Re: Replacement only in first slide of powerpoint
With OpenTBS version 1.8.0 (only available in beta for now), yu can do
$TBS->PlugIn(OPENTBS_SELECT_SLIDE, $Slide) |
Otherwise, you have to change the current slide using:
$TBS->LoadTemplate('#ppt/slides/slide2.xml')
|
|
By: Alejandro
Date: 2012-10-22
Time: 16:09
|
Re: Replacement only in first slide of powerpoint
Thx It worked!
|
By: John Porter
Date: 2013-08-21
Time: 16:11
|
Re: Replacement only in first slide of powerpoint
Skrol,
Thanks I have this working mostly as well. I am having one issue:
$json_string = $service_url . '/GetOpportunityAssumptions.php?oppty_id=' . $oppty_id;
$jsondata = file_get_contents($json_string);
$obj = (array)json_decode($jsondata, true);
$data6=$obj['assumptions'];
// Merge data for slide 4
$Slide4 = 4;
$TBS->MergeBlock('blk6',$data6);
$TBS->MergeBlock('a,b', $data );
$TBS->PlugIn(OPENTBS_SELECT_SLIDE, $Slide4);
|
My tags look like this in the PPT template
[blk6;block=begin][blk6.name;noerr]
|
When the template renders it does it only shows the tags but the table on the first slide works no problem and the approach above works for text replacements in other slides.
|
By: Skrol29
Date: 2013-08-25
Time: 23:15
|
Re: Replacement only in first slide of powerpoint
Hi,
First select the slide, then use MergeBlock() and other merging features.
|
|
Posting in progress.
Please wait...
|