This question already has an answer here:
这个问题在这里已有答案:
- Is there any sdk or kit to handle microsoft office formats in iOS? 1 answer
是否有任何sdk或工具包来处理iOS中的Microsoft Office格式? 1个答案
I am beginner in Objective C and iOS. I have a doubt how can we open an excel sheet in our app. The question is that if i click on a button then excel sheet should be open.
我是Objective C和iOS的初学者。我怀疑我们如何在我们的应用程序中打开excel表。问题是,如果我点击一个按钮,那么excel表应该是打开的。
3 个解决方案
#1
4
Update:
In apps that run in iOS 8 and later, use the WKWebView class instead of using UIWebView.
在iOS 8及更高版本中运行的应用程序中,使用WKWebView类而不是使用UIWebView。
https://developer.apple.com/documentation/webkit/wkwebview
To add to @rckoenes answer, these are the files format supported by UIWebview
:
要添加到@rckoenes答案,这些是UIWebview支持的文件格式:
Excel (.xls)
Keynote (.key.zip)
Numbers (.numbers.zip)
Pages (.pages.zip)
PDF (.pdf)
Powerpoint (.ppt)
Word (.doc)
Rich Text Format (.rtf)
Rich Text Format Directory (.rtfd.zip)
Keynote '09 (.key)
Numbers '09 (.numbers)
Pages '09 (.pages)
Here is the link for UIWebView
class description
这是UIWebView类描述的链接
#2
2
Just load the excel sheet in a webview, this will load the excel sheet and the user is able to view it.
只需在Web视图中加载Excel工作表,这将加载Excel工作表,用户可以查看它。
#3
2
you can open excel sheets using LibXLS
您可以使用LibXLS打开Excel工作表
I have answered similar question here too:
我也在这里回答了类似的问题:
Is there any sdk or kit to handle microsoft office formats in iOS?
是否有任何sdk或工具包来处理iOS中的Microsoft Office格式?
#1
4
Update:
In apps that run in iOS 8 and later, use the WKWebView class instead of using UIWebView.
在iOS 8及更高版本中运行的应用程序中,使用WKWebView类而不是使用UIWebView。
https://developer.apple.com/documentation/webkit/wkwebview
To add to @rckoenes answer, these are the files format supported by UIWebview
:
要添加到@rckoenes答案,这些是UIWebview支持的文件格式:
Excel (.xls)
Keynote (.key.zip)
Numbers (.numbers.zip)
Pages (.pages.zip)
PDF (.pdf)
Powerpoint (.ppt)
Word (.doc)
Rich Text Format (.rtf)
Rich Text Format Directory (.rtfd.zip)
Keynote '09 (.key)
Numbers '09 (.numbers)
Pages '09 (.pages)
Here is the link for UIWebView
class description
这是UIWebView类描述的链接
#2
2
Just load the excel sheet in a webview, this will load the excel sheet and the user is able to view it.
只需在Web视图中加载Excel工作表,这将加载Excel工作表,用户可以查看它。
#3
2
you can open excel sheets using LibXLS
您可以使用LibXLS打开Excel工作表
I have answered similar question here too:
我也在这里回答了类似的问题:
Is there any sdk or kit to handle microsoft office formats in iOS?
是否有任何sdk或工具包来处理iOS中的Microsoft Office格式?