Hi,
Want to replace a partucular text string in a slide, I could able get the 
string and modify it. But how can I saveback the slide into the PPT. I am 
trying out the following..

else if(shp[j] instanceof TextBox){

TextBox textShape = (TextBox)shp[j]; 
String mesg = textShape.getText();
                       if(mesg.equalsIgnoreCase("original")){                   
                textShape.setText("replaced text");     
}
             /* FileOutputStream outFile = new FileOutputStream
("C:/Test/IndividualSlideProject/Demo1samp.ppt");
        ss.write(outFile);
        outFile.close();*/

}

With the commented the entire file is replacing with the present slide, erasing 
the header information.

So is there any procedure to save the changes back into the ppt, having said 
that the slide can be at anywhere in the ppt.
Thanks,
Kumar



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

Reply via email to