RE: Word Automation: OLE exception error 5981 in Windows 7

Author: Bill Arnold

Posted: 2010-06-02 at 20:59:14

Ken,

This KB related to the general topic "Could Not Open Macro Storage" might be

informative?

http://support.microsoft.com/kb/224338

Bill

> -----Original Message-----

> From: profoxtech-bounces@leafe.com

> [mailto:profoxtech-bounces@leafe.com] On Behalf Of Ken Dibble

> Sent: Wednesday, June 02, 2010 8:17 PM

> To: profoxtech@leafe.com

> Subject: RE: Word Automation: OLE exception error 5981 in Windows 7

>

>

>

> > > I have some Word automation code that worked fine in Win

> 2000 but is

> >not

> > > working in Win 7. Yeah, I'm using Word 97, but I have

> heard that this

> > > problem can also occur with Word 2003, so let's for the sake of

> >argument

> > > hold off on the jeering and see if there are any

> solutions, okay? :)

> > >

> > >>>pain snipped

> >

> >1 - Clear temp files and such and run scandisk (or Win 7 equiv)

>

> Hm..would that be right before I reformat the hard drive and

> reinstall

> Windows? :)

> I know, you told me you're grasping at straws, and I

> appreciate the response.

>

> But Word 97 itself works just fine in Windows 7. It's just

> the automation

> that's messing up.

>

> >2 - In Task Manager, display the processes running and make sure you

> >don't already have an occurance of Word running. Playing

> with automation

> >often times leaves these Office apps dangling....

>

> Yes, it leaves Word dangling every time it throws the OLE

> exception, but I

> always go into Task Manager and kill it before trying again.

>

> I'm pretty surprised that nobody else has any insight into

> this. If you're

> doing Word automation with Office 2003 or earlier and VFP 9

> in Windows 7,

> would you at least please let me know what your experience has been?

>

> Thanks.

>

> Ken Dibble

> www.stic-cil.org

>

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/6C103504DB5A46C98DD071AE4661A2B0@bills

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Bill Arnold