Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

POI-HSLF java API for import PPT  RSS feed

 
Arjun Palanichamy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

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();

Thanx to Advance
Arjun
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Arjun Palanichamy
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dittmer...

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.....

Thanks in Advance..
Arjun
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!