UIWebView does not open ms word (doc) and ms excel (xls) files

前端 未结 1 1809
一个人的身影
一个人的身影 2021-01-03 10:55

I\'m developing an application for iPad using XCode 3.2.5 iOS SDK 4.2. This application requires to open PDF, DOC and XLS files and preview them to the user.

I\'m t

相关标签:
1条回答
  • 2021-01-03 11:16

    For loading word or excel or pdf documents, you need is physical path of document file. it means file should saved in document or temporary directory or it may be in application bundle.

    //now use file path to load in webview
    [yourWebView loadRequest:[NSURLRequest requestWithURL:[NSURL  fileURLWithPath:yourFilePath]]];
    
    0 讨论(0)
提交回复
热议问题