• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

POI-HSLF java API for import PPT

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic