开发者

UIWebView "Unable to read document" error

开发者 https://www.devze.com 2023-01-23 14:37 出处:网络
I am trying to open Word and Excel 2003 docs using loadRequest and I am getting this error (in simulator).

I am trying to open Word and Excel 2003 docs using loadRequest and I am getting this error (in simulator). Unable to Read Document. An error occurred while reading the document.

According to this link, http://developer.apple.com/library/ios/#qa/qa2008/qa1630.html

UIWebView should display doc and xls types.

Any ideas? Are there any other r开发者_运维技巧ecommended xls, doc viewers out there?

Thanks.


The reason i found int these case was due to password protected or encrypted file,or any file format which webview can load.

UIWebView has these EXCEPTION SFUZipEndOfCentralDirectoryError: Could not find the end of central directory record when it encounter with above reason.

You can load document like this

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号