Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18304] iOS: DocumentViewer not displaying DOCX files on Simulator

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.4.1, Release 3.5.0
Fix Version/sn/a
ComponentsiOS
Labelsdocs, ios, parity, qe-3.5.0, simulator
ReporterEric Wieber
AssigneeUnknown
Created2015-01-05T20:00:21.000+0000
Updated2018-02-28T19:55:05.000+0000

Description

DocX files will load on iOS devices, but not on simulators. The documentation says that XML versions (DocX) are not supported. However, they do load on devices. *Steps to reproduce issue*: 1. Install the sample app and launch it 2. Click on Launch Doc 3. Click Done 4. Click Launch DocX *Actual Results*: 2. The file is loaded 4. The file is loaded only on devices; not on simulator *Expected Results*: The DocX file should have the same behavior on both platforms or the documentation should be updated to indicate the discrepancy in parity.
var win = Ti.UI.createWindow(); 
// Use a NavigationWindow to create a navigation bar for the window 
var navWin = Ti.UI.iOS.createNavigationWindow({window: win}); 

var navButton = Titanium.UI.createButton({title:'Launch'}); 
win.RightNavButton = navButton; 

var docXButton = Titanium.UI.createButton({ 
title:'Launch DocX', 
height:40, 
width:200, 
top:230 
}); 
win.add(docXButton); 

var docButton = Titanium.UI.createButton({ 
title:'Launch Doc', 
height:40, 
width:200, 
top:180 
}); 
win.add(docButton);

var pdfButton = Titanium.UI.createButton({ 
title:'Launch PDF', 
height:40, 
width:200, 
top:280 
}); 
win.add(pdfButton); 

// Create a document viewer to preview a PDF file 
docViewer = Ti.UI.iOS.createDocumentViewer(); 
// Opens the options menu and when the user clicks on 'Quick Look' 
// the document viewer launches with an animated transition 
navButton.addEventListener('click', function(){ 
	docViewer.show({view:navButton, animated: true}); 
}); 
// The document viewer immediately launches without an animation 
docButton.addEventListener('click', function(){
	docViewer.url = 'test1.doc';
	docViewer.show();
	}); 
// The document viewer immediately launches without an animation 
docXButton.addEventListener('click', function(){
	docViewer.url = 'test1.docx';
	docViewer.show();
	}); 
pdfButton.addEventListener('click', function(){
	docViewer.url = 'test.pdf';
	docViewer.show();
	}); 

navWin.open();
Sample files attached.

Attachments

FileDateSize
test.zip2015-01-05T20:00:21.000+00004464314

Comments

No comments

JSON Source