For what it's worth, I eventually gave up on this and used the SlideShow
object instead.

QA_2 wrote:
> 
> Hello, all. 
> 
> I'm new to POI and am trying to create a tool that will automatically
> generate a simple PowerPoint slideshow from data in our application. The
> data contains images, so I'd like to include those in the slides. However,
> I've not been able to figure out the way to add a picture to a slideshow.
> 
> I saw this page:
> http://poi.apache.org/slideshow/how-to-shapes.html#Pictures which suggests
> use of the HSLFSlideShow.addPicture() method. However, that page is marked
> as being from 2007, and the the version of the JAR that I downloaded has
> that method taking different arguments: the docs at that link refer to
> addPicture(File, Picture.PictureType), but the jar has
> addPicture(PictureData). Since PictureData has only a no-arg constructor,
> I'm not sure how to get the actual image file into the system.
> 
> 
> Short version: I know to add PictureData via HSLFSlideShow.addPicture().
> But how do I create PictureData for a particular image file?
> 

-- 
View this message in context: 
http://www.nabble.com/Adding-a-picture-to-a-slideshow-tp23086234p23211143.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