Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

POI-HSLF java API for import PPT

 
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
 
Rancher
Posts: 43011
76
  • 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!