[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Unable to open Word .doc/docx from Sharepoint 2007

Posted on 2010-08-18
8
Medium Priority
?
2,095 Views
Last Modified: 2012-05-10
Windows Server 2003 (32-bit, Standard, SP2)
Citrix PS 4.5
Office 2003 Pro (2007 converters installed)
Sharepoint 2007
Internet Explorer 7

Hi,

Using the above setup, none of our users can open .doc files from within Sharepoint and .docx files can only be opened in read only mode within IE.

Attempting to open a .doc file results in Word opening with a blank screen, i.e. no document displayed and no blank template.  If Word is left open in this state and the .doc file is opened again from within Sharepoint, the following error is displayed:

Compile error:
Syntax error

The macro in question is as follows (with the 4th line highlighted):

Private Sub TmpDDE()
WordBasic.AppShow
Rem _DDE_ReadWriteOnSave
WordBasic.FileOpen Name :=, Revert := 0
End Sub

I've managed to work out that it is using the following file association registry key to call Word:

HKEY_CLASSES_ROOT\Word.Document.8\shell\OpenAsReadOnly

I've compared this key to a working XP Pro machine with the same versions of Office and IE and they're absolutely identical.

I've figured that the following DDE command is what should be passing the file path to Word as "%1", but is failing and passing blank details instead:

[AppShow][REM _DDE_ReadWriteOnSave][FileOpen .Name="%1",.Revert=0]

Googling this issue returns a handful of results with people suffering from the same issue, but no resolution details.  Does anybody know what may be causing this problem?

Cheers

0
Comment
Question by:WelshPretender
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 33472792
0
 

Author Comment

by:WelshPretender
ID: 33472813
Hi,

While this problem applies to .docx files too, it is a bigger problem with .doc files, so the IFilters won't have anything to do with the issue.

Cheers
0
 
LVL 62

Expert Comment

by:gheist
ID: 33473235
interop assembles for office 2003?
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 62

Expert Comment

by:gheist
ID: 33473256
0
 

Author Comment

by:WelshPretender
ID: 33473602
I've had a look around and can't see anywhere that states SharePoint uses the interop assemblies when opening documents.  However, this got me thinking ...

SharePoint uses the sharepoint.opendocuments class to open files within a document library.  This class is loaded by owssupp.dll.  We have just one copy of the file within the Office11 directory (19/04/2007  14:10  99,680 bytes).

According to an article - http://www.sharepointvoodoomagic.com/ - opening any SharePoint document library within IE should load the SharePoint Open Documents class.  Going to ... Tools > Manage Add-ons > Enable or disable add-ons > Addons currently loaded in IE ... should display the class.  However, I can't see this on our servers or the working XP machine I'm using.  I'm guessing this article is a bit of a red herring.

I've unregistered and re-registered owssupp.dll, receiving the apparently benign and ignorable "DllRegisterServer in C:\Program Files\Microsoft Office\OFFICE11OWSSUPP.DLL failed. Return code was: 0x80070716" error, but still no joy.

Any thoughts?

Cheers
0
 
LVL 62

Expert Comment

by:gheist
ID: 33473729
sharepoint is in .net and uses dcom ....
that hints me ...
0
 

Author Comment

by:WelshPretender
ID: 33474454
I've installed the interop assemblies, but still no joy I'm afraid.

I'm now convinced that the issue has something to do with the owssupp.dll.  The link within SharePoint uses DispEx() onclick, which apparently should give the 'Open read only/Edit' radio button options.  However, I only get a warning about opening files from IE.

Is there any way of confirming whether this dll has been registered and is functioning correctly?

Cheers
0
 

Accepted Solution

by:
WelshPretender earned 0 total points
ID: 33565665
I found the problem in the end.  The following registry key was missing:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WINWORD.EXE

I copied the key from another machine and now all is ok.

Cheers
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question