如何使用Apache POI HSLF将AVI视频嵌入到Powerpoint ppt文件中?

时间:2012-01-14 14:32:46

标签: java powerpoint apache-poi

试过这个:

int idx4 = ppt.addMovie(new File("Animation.avi").getCanonicalPath(), MovieShape.MOVIE_AVI);
MovieShape pict4 = new MovieShape(idx4, idx4);

pict4.setAnchor(new java.awt.Rectangle(100, 100, 300, 200));

Slide slide4 = ppt.createSlide();
slide4.addShape(pict4);

没有成功。有什么想法吗?

1 个答案:

答案 0 :(得分:1)

Apache POI MovieShape Test上课帮助了我。