Cannot open docx file via webbrowser in application using OpenIn functions

I use the "OpenIn" functionality and open the files from a web browser into my application. All file types are registered and working properly. When you tried to open docx, pptx or another file from a web browser, my application name was not indicated in the "Open" field. Although I can view the docx or pptx file in my application using the UIDocumentInteractionController. I do not know where the problem is that it works very well.

Any suggestions are welcome. Thank you for your help in advance.

+1
ios iphone ios5 ipad
source share
3 answers

doc UTI: com.microsoft.word.doc

docx UTI: org.openxmlformats.wordprocessingml.document

ppt UTI: com.microsoft.powerpoint.ppt

pptx UTI: org.openxmlformats.presentationml.presentation

xls UTI: com.microsoft.excel.xls

xlsx UTI: org.openxmlformats.spreadsheetml.sheet

Example:

<dict> <key>CFBundleTypeName</key> <string>Microsoft Word 2003 XML document</string> <key>CFBundleTypeRole</key> <string>Viewer</string> <key>LSHandlerRank</key> <string>Alternate</string> <key>LSItemContentTypes</key> <array> <string>org.openxmlformats.wordprocessingml.document</string> </array> </dict> 
+13
source share

In your info.plist application, you would add something similar to the following so that your application can open, say, a PDF file, right?

enter image description here

Just replace the above

enter image description here

Note that the Document Content Type UTIs been changed to public.item , which corresponds to public.item like ppt, doc, etc.

Therefore, now you can get the option "Open in .." for pdf, doc, docx, ppt, pptx, xls, xlsx.

0
source share

UIWebView does not support MS Office 2007 file formats, i.e. docx, pptx, xlsx due to the file architecture.

-one
source share

All Articles