|
Subject:
|
Could not open macro storage
|
|
Posted By:
|
tigerkit
|
Post Date:
|
10/13/2003 1:31:25 AM
|
hi,
i've got a problem with regards to viewing/opening word document from the net.
we have a customised COM dll for controlling all the Word toolbars and firm specific functions at work. at the moment, whenever we try to view an word document from the net, an error message "Could not open macro storage" will be displayed while the document is opened.
Adding breakpoints/message boxes to the dll and disclose the error coming out from the following class_initialize sub:
Dim m_objWordApp As Word.Application Dim m_objWordDoc As Word.Document
Set m_objWordApp = GetObject(, "Word.Application") If Err.Number <> 0 Then strMsg = "Microsoft Word is not loaded!" & vbCr & vbCr & _ "Cannot successfully initialise ActiveX component until this application is present" MsgBox strMsg, vbCritical Err.Clear Else 'initialise m_objWordDoc to the currently active document Set m_objWordDoc = m_objWordApp.ActiveDocument m_objWordApp.ActiveDocument returns the error.
have anyone experienced anything like this before?
your help will be much appreciated!
cheers, tigerkit
|
|
Reply By:
|
sahil_98
|
Reply Date:
|
11/6/2003 3:01:00 PM
|
I am having the same problem? Do you have a solution?
Thanks
|
|
Reply By:
|
sal
|
Reply Date:
|
11/6/2003 10:53:01 PM
|
I am not completly sure about this, but, i have to ask. Is word installed on the server?
Sal
|
|
Reply By:
|
sojoca
|
Reply Date:
|
3/11/2004 10:52:48 PM
|
Hi All, You might read: http://support.microsoft.com/default.aspx?scid=kb;en-us;224338 and http://www.printsoftblink.com/tech/trouble.htm#5981 (you probably did a reinstallation already) It points in the directions of the automation swamps. regards, León quote: Originally posted by sal
I am not completly sure about this, but, i have to ask. Is word installed on the server?
Sal
regards León
|
|
Reply By:
|
happygv
|
Reply Date:
|
6/12/2004 1:09:31 AM
|
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q224/3/38.ASP&NoWebContent=1
Take a look at this.
Cheers!
_________________________ -Vijay G
Strive for Perfection
|
|
Reply By:
|
sh.rajkumar
|
Reply Date:
|
5/22/2006 2:13:34 AM
|
Hello to ALL,
Me too have same problem where I am going to count the number of characters in my asp.net.But after a study I found that microsoft doesn't support and not suggest to this word automation on server side. But by the way if you got any solution then plz reply
rajkumar sharma
|
|
Reply By:
|
kalees
|
Reply Date:
|
9/20/2006 3:58:15 AM
|
I am having problem with word automation. my coding is working fine in local system.but it is not working in the terminal server. i am using word2003 professional but terminal server contains word2003 standard.please anyone help me.
<% Set WordServer = Server.CreateObject("Test.Wordserver") Set objWordobject = WordServer.GetWord 'Get Word instance
objWordobject.Visible = True
strTemplate="c:\template.dot" 'Open doc Set objDocobject=objWordobject.Documents.add(strTemplate)
%>
Option Explicit Private mwrdApp As Word.Application 'Holds Word instance
Private Sub Class_Initialize () Set mwrdApp = New Word.Application 'Create Word instance End Sub
Private Sub Class_Terminate () mwrdApp.Quit 'Kill Word instance Set mwrdApp = Nothing 'Kill reference End Sub
Public Function GetWord () As Word.Application Set GetWord = mwrdApp 'Return Word instance End Function
Thanks, Kalees
|
|
Reply By:
|
BrianWren
|
Reply Date:
|
9/20/2006 2:56:08 PM
|
Well, what happens when you run this?
|