>A Google search suggests the Visual Basic may not be working correctly.
>http://www.endnote.com/support/faqs/CWYW/faq8.asp
>
>Can you open the Visual Basic editor in Word on the Windows 7 box?

Hm... when running Word normally I can't. I get "Could not open macro 
storage", twice, and then an empty Visual Basic window. However, if I run 
Word in Windows XP SP 2 mode, then the VB editor will work.

After saving that mode setting for winword.exe, when I run my automation 
code I got "Operation requires elevation" on

oWord = CREATEOBJECT("Word.Application")

Also, running Word manually in that mode I have to tell the UAC to let it run.

So I started messing with local security policies. (Although there's a 
slider control to "disable" UAC, there doesn't seem to be any way to 
actually save that change. I can move the slider but next time I open the 
UAC control panel it's back where it was before.)

After disabling the following items:

User Account Control: Only elevate executables that are signed and validated
User Account Control: Only elevate UI Applications that are installed in 
secure locations
User Account Control: Run all Administrators in Admin Approval Mode

And after changing "User Account Control: Behavior of the elevation prompt 
for administrators in Admin Approval Mode" to "Elevate without prompting",

My automation runs correctly! Whoohoo!!

However, I have yet to figure out how to get it to run for a "standard 
user". For a standard user, I still get the "Operation requires elevation" 
error as above.

Also, just running my compiled .exe, without accessing the Word automation 
feature--just starting it and shutting it down--as a standard user, 
produces VFP error 57 "not enough disk space" on the line:

SET RESOURCE TO

in my environment object.

I thought this was because the foxuser files were in my administrative 
account's profile, so I tried copying them to the same location in the 
standard user's account--no dice; same error.

Is there something I can put in config.fpw to tell it where the foxuser 
files are?

Thanks!

Ken Dibble
www.stic-cil.org

I 


_______________________________________________
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