Can we open & view .doc, .docx, .rtf, .ppt, .pptx, .xls, .xlsx file in iphone using UIWebview?
I am using Document directory to show the file.
.doc file is working fine here… but rest of the files' extensions are not working..
if any one has implemented this then please help me…
any code snippet or any web link help…
thanks in advance…
Best Answer
You may want to look at the QuickLook Framework for iOS: https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/UsingtheQuickLookFramework.html
It supports the following formats:
More specifically you may want to look at the
QLPreviewController
: https://developer.apple.com/library/ios/documentation/NetworkingInternet/Reference/QLPreviewController_Class/Reference/Reference.html#//apple_ref/occ/cl/QLPreviewController