0

I'm new in iPhone, I'm trying to open .doc file in the UIWebView, I wrote the following code

NSString *urlAddress = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%@.doc", docName] ofType:nil]; 

NSLog(@"in search the document url address: %@", urlAddress);

NSURL *url  = [NSURL fileURLWithPath:urlAddress];
NSURLRequest *requestObj  = [NSURLRequest requestWithURL:url];

[_webView loadRequest:requestObj];

the application doesn't crash, but it gives me the following:

EXCEPTION CPMessageException: (null)

and loads a blank page

Any Help in this issue?

user1553381
  • 415
  • 2
  • 13
  • 30

1 Answers1

0

Check out these two SO posts: Reading Open-XML documents in IOS any objective-c library to parse/read word documents?

Community
  • 1
  • 1
James
  • 2,272
  • 1
  • 21
  • 31