Reputation: 4022
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
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
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