I want import the PPT file in my java swing application i apply the POI-HSLF java API.but that i got the error i give my code here.just i want show my application and also edit,save the PPt file.
//for get the slide
SlideShow ppt = new SlideShow(new HSLFSlideShow("slide100.ppt")); java.awt.Dimension pgsize = ppt.getPageSize(); int px = pgsize.width; // width int py = pgsize.height; // height //for set the slide size ppt.setPageSize(new java.awt.Dimension(1024, 768)); // for save FileOutputStream out = new FileOutputStream("slide100.ppt"); wb.write(out); out.close();
You didn't say what error you are getting, and in which line of the code it occurs.
I think you have a tough job ahead in interpreting PPT file contents so that you can display and edit them.
posted 13 years ago
I got your reply. you are right. i want import ppt file,edit and show the Flash Player in SWF file format.HSLFSlide cannot be resolved to a type erorr. if that i want import any special type of file,can u give me any sample source code.....