Hello:
Our application supports Chrome and it uses the Office Authorization plug-in for NPAPI browsers which gets distributed with Office 2010 to edit excel files (the app provides a webdav interface)
I recently noticed that in Chrome, the plug-in fails to open files whose urls (i.e. the file webdav complete address http://<server name>/<path1>/<path2>.../<file_name>.xlsx where the items between angle brackets are placeholders for the actual names) have more than 111 chars.
To launch Excel for editing an excel file I am using the code the following code:
getOrCreateContainer: function(containerId) { var container = Ext.get(containerId); if (container) return container; container = new Ext.Element(document.createElement('div')); container.id = containerId; container.setStyle({ width: '0px', height: '0px', position: 'absolute', overflow: 'hidden', top: '-1000px', left: '-1000px' }); Ext.getBody().appendChild(container); return container; }, getOrCreateSharePointPluginContainer: function() { var sharePointPluginContainer = this.getOrCreateContainer('_sharePointPluginContainer'); if (!sharePointPluginContainer.first()) { var domObj = Ext.DomHelper.createDom( { tag: 'object', type: 'application/x-sharepoint', style: { visibility: 'hidden', width: '0px', height: '0px' } } ); sharePointPluginContainer.appendChild(new Ext.Element(domObj)); } return sharePointPluginContainer; }, sharePointEditDocument: function (sUrl) { try { var sho = this.getSharePointOpenDocumentsCtrl(); if (sho) { if (!sho.EditDocument(sUrl)) { //todo: use localized message alert('Cannot edit file'); return false; } } } catch (e) { return false; } }, getSharePointOpenDocumentsCtrl: function () { if (this._sharePointOpenDocumentsControl == null) { this._sharePointOpenDocumentsControl = this.getOrCreateSharePointPluginContainer().first().dom; } return this._sharePointOpenDocumentsControl; },
Basically if the url has more than 111 characters the EditDocument method returns false.
Here are some version numbers of the plug-in.
Microsoft Office (2 files) - Version: 14.0.4730.1010 Office Authorization plug-in for NPAPI browsers Name: Microsoft Office 2010 Description: Office Authorization plug-in for NPAPI browsers Version: 14.0.4730.1010 Location: C:\PROGRA~2\MICROS~1\Office14\NPAUTHZ.DLL Type: NPAPI Disable MIME types: MIME type Description File extensions application/x-msoffice14 14.0.4730.1010 .* Name: Microsoft Office 2010 Description: The plug-in allows you to open and edit files using Microsoft Office applications Version: 14.0.4761.1000 Location: C:\PROGRA~2\MICROS~1\Office14\NPSPWRAP.DLL Type: NPAPI Disable MIME types: MIME type Description File extensions application/x-sharepoint SharePoint Plug-in for Firefox
If this thing fails once then weird things start happening, I cannot open other files that should normally open. Let's give you an example:
If I have a file 012345678.xlsx that failed to open and I have another one abc.xlsx that would normally open the plugin opens a dialog saying roughly: do you want to open file abc.xlsx5678.xlsx?
IIt looks to me as if some buffers get ovewritten.
Any chances this would get fixed, or are there any workarounds?
Other version information:
OS Name Microsoft Windows 7 Ultimate 64 bit
Version 6.1.7601 Service Pack 1 Build 7601
Chrome: 28.0.1500.95 (Official Build 213514)m
Thanks