Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20209] Can't load the .docx file using the documentViewer on iOS.

GitHub Issuen/a
TypeImprovement
PriorityTrivial
StatusClosed
ResolutionNot Our Bug
Resolution Date2016-07-28T19:04:00.000+0000
Affected Version/sRelease 5.1.1
Fix Version/sn/a
ComponentsiOS
LabelsdocumentViewer, docx, ios
ReporterRohan Peshwe
AssigneeAngel Petkov
Created2015-12-29T15:26:04.000+0000
Updated2017-03-24T18:55:19.000+0000

Description

Hello, I am trying to load the '.docx' file using the documentViewer API and it's not working as expected. According to the docs, we can load the '.doc' file using this API and it's working fine with it. [http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iOS.DocumentViewer] Please let me know if it can be available for the following: - iOS version :- iOS 7 and above. - Appcelerator's SDK version :- 4.0.0 and above. Can you please suggest how to exhibit the same functionality for the docx file using the documentViewer API ? I have also attached the POC.

Attachments

FileDateSize
Docx_POC.zip2015-12-29T15:22:42.000+00009873339
sample.doc2016-01-05T13:03:47.000+000011272
Screen Shot 2015-12-30 at 12.36.21 PM.png2015-12-30T06:43:04.000+000028697
Screen Shot 2015-12-30 at 12.36.41 PM.png2015-12-30T06:43:08.000+000083819
Screen Shot 2015-12-30 at 12.37.09 PM.png2015-12-30T06:43:10.000+0000114560
Screen Shot 2016-01-07 at 5.57.50 PM.png2016-01-07T12:04:10.000+000036620

Comments

  1. Sharif AbuDarda 2015-12-30

    Hello, I have tested your project in my environment and it's working fine. Please see the attachments. Please update your SDK to 5.1.1.GA and CLI 5.1.0, and try.

    MY ENVIRONMENT

    Appcelerator Command-Line Interface, version 5.1.0 Operating System Name = Mac OS X Version = 10.11.2 Architecture = 64bit CPUs = 4 Memory = 8.0GB Node.js Node.js Version = v4.2.2 npm Version = 2.14.7 Titanium CLI 5.0.3 Titanium SDK 5.1.1.GA Thanks.
  2. Rohan Peshwe 2016-01-05

    Please test above with new .doc file in attachments (sample.doc). I am not able to open the this file using the documentViewer API. This file is of format Word 97 (.doc) Document. I am using the 5.1.1GA SDK and 5.1.0 CLI version as suggested.
  3. Angel Petkov 2016-01-21

    After investigating the issue , it seems the problem is native. In our SDK all we do is synthesize the arguments and pass them to the delegate. It seems to wok with all other .doc files that are not exported from word 97. After doing some more digging it seems that Apple have the same issue with more of their software when it comes to reading .doc file that are Microsoft 97-2004. It appears to be an issue with Email attachments and Page app. A solution would be to simply put all the context of the so doc file and move it to a newer version of MS Word. I would have suggested to also add the file to an online doc [viewer](http://www.viewdocsonline.com) and then add the link to our webView. However it seems not even onlineDocs will read the file format.
  4. Lee Morris 2017-03-24

    Closing ticket with reference to the previous comments.

JSON Source