view .doc, .docx, .rtf, .ppt file in iphone using Webview

Posted by Ekra on Stack Overflow See other posts from Stack Overflow or by Ekra
Published on 2010-05-24T11:36:07Z Indexed on 2010/05/24 11:41 UTC
Read the original article Hit count: 1088

Hi friends

I want to view .doc, .docx, .rtf, .ppt file in iphone.

But I guess something is going wrong at my side and its not working for the above formats but my code is working fine for .txt and .pdf files.

I have the read the document regarding Webview it states it supports viewing of the above document.

below is my snippet for .doc

[webView loadData:requestData MIMEType:@"application/msword" textEncodingName:@"UTF-8" baseURL:nil];

for .ppt I am using MIME type as "application/"

Note: If I am making MIME type as "text/html" for .doc then it displays some garbage data So I think there is something missing in MIME type from my side.

Any help is highly appreciated.

Waiting for your reply.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk