I new to this and hope my naive questions still can find an expert to give me
some guidance. 
I use a ppt-template (2 slides) which I fill multiple times with information
from excel. This ppt-template is filled multiple times and should be than
attached to each other. So what I do in the moment is the following: 
1. One code to create/fill the individual presentation
2. One code to merge the slides

To code 1: 
Filling the file is fine and I have tried to give the slides new ID with: 

public void setSlideNumber (int original, int target) {
        ppt_.getSlides()[original].setSlideNumber(target);
}

To code 2:
FileOutputStream exportStream = null;
TemplateFiller ppt2 = null;
Iterator<Project> it = iterator();
int i = 0;
while (it.hasNext())
{
     Project project = it.next();
     try 
     {
          exportStream = new FileOutputStream ("Export.ppt", true);
          ppt2 = new TemplateFiller("Template.ppt", project);
          ppt2.modSlide();
          ppt2.setSlideNumber(1, i+1);
          ppt2.setSlideNumber(0, i);
          i += 2;
          ppt2.write(exportStream);
          exportStream.close();
    }
}
I thought with changing the slide ID I could position the sildes in the
merging presentation. 
this is currently not working, so may there is an option to fine tune this
or to follow a different concept. I would like to avoid to copy the
individual Icons, Texts and Tables. --
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/Merge-presentations-from-filles-template-tp4358030p4358030.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to