views:

19

answers:

1

Hi all,

how can we display the content of MS Office 2007/2010 files (specially .docx) in iOS 3.2 (ipad) ?

thanks in advance.

+1  A: 

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];

actually the UIWebView is capable of viewing these types but only on the iPad physically, it will not view the files in the simulator.

Ibrahim Abdulkarim