Once I figured out the way to open pdf files in iPhone and iPad, I was in a lookout for opening *.doc, *.xls, *.ppt files. Finally after a bit of digging, got to know it. Tried the same code in iPad, it did not work..I also tried opening Open Office document files and it did not work.

Here is the code for you.

NSString *path = [[NSBundle mainBundle] pathForResource:@"C.doc" ofType:nil];
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webview loadRequest:request];