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

Author: Ken Dibble

Posted: 2010-06-02 at 20:17:02

> > 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

_______________________________________________

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/5.2.1.1.1.20100602200743.01f99a30@pop3.frontiernet.net

** 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 Ken Dibble