views:

371

answers:

2

I am developing an iPhone application where I want to open a PowerPoint file in my application. Can anyone please help me out?

A: 

To my knowledge, the iPhone only currently reads Word and Excel documents. I don't think PowerPoint is supported. I tried it, and it wouldn't open the PowerPoint file. For a Word file, the iPhone actually has an arrow that you can tap, opening the document in another window.

Treby
iPhone opens PPT files just fine, both from email and from iDisk. I do not know of a way to access this functionality from within a custom app, though.
mikestew
U can open the ppt file...
Pradeep Reddy Kypa
+2  A: 

Use -[UIWebView loadData:MIMEType:textEncodingName:baseURL:]

[webView loadData:[NSData dataWithContentsOfFile:filePath] MIMEType:@"application/vnd.ms-powerpoint" textEncodingName:@"UTF-8" baseURL:[NSURL URLWithString:filePath]]
rpetrich
Thanks a lot.. This is working
Pradeep Reddy Kypa