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

Author: Jarvis, Matthew

Posted: 2010-05-27 at 16:18:05

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

> From: profoxtech-bounces@leafe.com

[mailto:profoxtech-bounces@leafe.com]

> On Behalf Of Ken Dibble

> Sent: Thursday, May 27, 2010 7:29 AM

> To: profoxtech@leafe.com

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

>

> Hi folks,

>

> 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

Sounds like you've stepped into a real quagmire there....

It makes my brain hurt to try and follow along the normal.dot and

permissions and Win7 and Win NT and...... stuff....

BUT I can offer two minor, probably meaningless things to at least try.

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

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

Sorry, that's all I gots....

Thanks,

Matthew Jarvis || Business Systems Analyst

IT Department

McKenzie-Willamette Medical Center

1460 G Street, Springfield, OR 97477 || Ph: 541-744-6092 || Fax:

541-744-6145

--------------------------------------------------------------------------

Disclaimer: This electronic message may contain information that is

Proprietary, Confidential, or legally privileged or protected. It

is intended only for the use of the individual(s) and entity named

in the message. If you are not an intended recipient of this

message, please notify the sender immediately and delete the

material from your computer. Do not deliver, distribute or copy

this message and do not disclose its contents or take any action in

reliance on the information it contains.

_______________________________________________

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/69F310C05DD83C48A84BA3769CE1ECF8033FE5DC@TNTRIEXEVS02.triadhospitals.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 Jarvis, Matthew