How to display the content of MS Office 2007/2010 files on iPad?
-
26-09-2019 - |
Question
How can we display the content of MS Office 2007/2010 files (specially .docx) in iOS 3.2 (ipad)?
Solution
using this code snippet :
NSString *path = [[NSBundle mainBundle] pathForResource:resourcePath ofType:nil];
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
ironically I found that the UIWebView is capable of viewing these types but only on the iPad physically, it will not view the files in the simulator.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow