原文地址:http://heidianfeng.blog.163.com/blog/static/618434562011123113650744/
在程序里打开一个word文档并显示在一个view里,
或者也可以换种方式,比如把word转成html再显示在UIWebView里。
看看这个有没有帮助http://developer.apple.com/library/ios/#qa/qa2008/qa1630.html, 当然也是可以使用odbc的。
果然用UIWebView就可以了
-(void)loadDocument:(NSString*)documentName inView:(UIWebView*)webView
{
NSString *path = [[NSBundle mainBundle] pathForResource:documentName ofType:nil];
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[webView loadRequest:request];
}
// Calling -loadDocument:inView:
[self loadDocument:@"test.doc" inView:self.myWebview];