Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to open powerpoint(ppt) file in my app without the help of another application.

Is there any PPT-Viewer widget which i can integrate into my app.

In my app i take slide number from the user and show him the corresponding slide.

Happy Coding!
Posted
Comments
Sudhakar Shinde 6-Aug-13 11:51am    
Check http://poi.apache.org/
Member 10455220 9-Apr-15 5:16am    
send me code

1 solution

Here you go:
Java
File file = new File("path_to_the_file.ppt");
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(file),"application/vnd.ms-powerpoint");
startActivity(intent);


This will show the user options about any power-point viewers that they have installed and they can pick one.
 
Share this answer
 
Comments
Monster Maker 10-Aug-13 11:26am    
I know this method.

I have already mentioned "without the help of another application."

I want to integrate the ppt viewer!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900