 |
| Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET). |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

October 13th, 2003, 01:31 AM
|
|
Registered User
|
|
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Could not open macro storage
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
|
|

November 6th, 2003, 04:01 PM
|
|
Registered User
|
|
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I am having the same problem? Do you have a solution?
Thanks
|
|

November 6th, 2003, 11:53 PM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I am not completly sure about this, but, i have to ask. Is word installed on the server?
Sal
|
|

May 22nd, 2006, 02:13 AM
|
|
Authorized User
|
|
Join Date: May 2006
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

September 20th, 2006, 03:58 AM
|
|
Registered User
|
|
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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(strTempla te)
%>
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
|
|

September 20th, 2006, 02:56 PM
|
|
Friend of Wrox
|
|
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
|
|
Well, what happens when you run this?
|
|
 |