Hi Tracy,

After a bit more testing I found the createobject("word.application")
automation would not work when it was tied in with the Crystal Reports,
otherwise, by itself it was okay.

Adding the folder the file was created in to the "Trusted" locations table
worked Tracy.

I'm guessing Crystal "added" something to the document that made Word 2007
skeptical about its security.

Thanks for the help.

Jim

James E Harvey
Hanover Shoe Farms, Inc.
M.I.S./Corresponding Officer
Off: 717-637-8931
fax: 717-637-6766
email: [EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Tracy Pearson
Sent: Friday, June 22, 2007 10:21 AM
To: [email protected]
Subject: RE: Automation with Word 2007

There is another option. The following link explains using a Trusted
location.

http://office.microsoft.com/en-us/help/HA100319991033.aspx#3


-----Original Message-----
From: James E Harvey
Sent: Friday, June 22, 2007 7:24 AM

I'm receiving an error message when I attempt to run automation with Word
2007

At, oword = createobject("word.application") Word opens with a message
referencing a KB article 922850 which requires a regedit. 
 
"This error occurs if you try to open a Microsoft Office document and the
file type for that document has been blocked by a registry policy setting.
To help secure your computer, Microsoft or the administrator of this
computer implemented a registry policy setting that prevents opening this
type of file. To open documents with this file type, disable the registry
policy setting. For more information, see Microsoft Knowledge Base article
922850."


I'm running Vista, and I hate fooling with the registry.  Is there any hope
for another solution?

James E Harvey



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
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/[EMAIL PROTECTED]
** 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.

Reply via email to