Dave Burke - Freelance .NET Developer specializing in Online Communities

A freelance .NET Developer

Sharepoint Beef #3 : Opening docs with native Office apps in IE

We thought we discovered something great when we started using the ActiveXObject('Sharepoint.OpenDocuments.1') approach recently to open Office docs with full Sharepoint 2001 check-out/Document Management support from within IE.

var objDoc = new ActiveXObject('Sharepoint.OpenDocuments.1');
objDoc.EditDocument(sLocation, 'Word.Document');
etc....

The code is an excerpt from the updated FolderItemsPart.xsl webpart available from MS here

Then we started upgrading workstations from W2K3 Professional to Windows XP Professional and it stopped working!  The webpart doesn't work either.

The error we're getting is a javascript error:  "Automation Server can't Create Object" as shown here.


We turned off “browse in same window“ in Folder-->Folder Options-->Filetypes-->Advanced.  That opened in native Word alright, but we lost the ability to check-out or do any SPS functions with the doc.  We updated the Microsoft Windows Script located here, we registered \windows\system32\scrrun.dll.  We reinstalled the SPS 2003 Client Components found here.  Nothin'.

We could direct people to the folder containing the doc, then the user could open the doc with full Sharepoint DM support, but oh, darn, if the URL is longer than 100 characters, the folder won't OPEN in a window.  (That beef is located here.)

Corporate management was so impressed with our ability to launch Office docs with their native apps and with full Sharepoint integration!  We should have known it was too good to be true.  We spent good money to upgrade our workstations to Microsoft WindowsXP only to screw ourselves with legacy javascript\activex\com\ole crap that doesn't work anymore and our managers want to know why?  

Posted: Jan 13 2004, 01:10 PM by daveburke | with 5 comment(s)
Filed under:

Comments

TrackBack said:

# January 13, 2004 4:33 PM

Bayram Guldibi said:

Hi we are also getting same error message on a SPS 2001 server with Windows XP Prof client and Office 2000 prof installed PC environment.
We have 10 client PCs have same configuration but 2 of them are giving same error message if a user wants to use built in functions (edit, disccuss etc.)

We haven't able to find a solution yet,

Regards,
Bayram Guldibi.
bguldibi@protel.com.tr
# March 2, 2004 10:07 AM

CESAR DE LA TORRE said:

Use better "Sharepoint.OpenDocuments.2".
It is the latest version of this ActiveX control. (It is installed with Office 2003).

CESAR DE LA TORRE
# July 28, 2004 11:34 AM

Avandia. said:

Avandia market. Avandia side effects. Synergistic effect of metformin and avandia. Avandia.

# July 30, 2008 5:32 PM

Todd said:

I am wondering if you have any insight on what might be the cause of this.  We are using a content management system that has code that uses OpenDocuments.2 from what I can tell. We have users running Office XP where the code is failing and all they receive is a white screen.  Other XP users the code works fine and the document open.  Office 2003 users all work fine.  I have installed Office XP SP 3, OWC , I registered the DLL mentioned above again, made sure the browser wasn't blocking active X but still nothing seems to prevail.  Do you have any suggestions?  

# September 4, 2008 4:35 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)