Pradeep Reddy Kypa
Pradeep Reddy Kypa

Reputation: 4022

can we open a PowerPoint file in an iPhone application?

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

Upvotes: 2

Views: 2285

Answers (2)

rpetrich
rpetrich

Reputation: 32336

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

[webView loadData:[NSData dataWithContentsOfFile:filePath] MIMEType:@"application/vnd.ms-powerpoint" textEncodingName:@"UTF-8" baseURL:[NSURL URLWithString:filePath]]

Upvotes: 5

Treby
Treby

Reputation: 1320

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.

Upvotes: 0

Related Questions