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

Fred wrote:

 >resource="x:\folder\name_of _foxuser_table"

Yeah, unfortunately in config.fpw, resource= can either be "on","off" or a 
file location. I already have the line

resource="off" in there.

The reason why my shutdown code has a SET RESOURCE TO line is because I use 
the old separate printing resource file dodge to force a print preview 
toolbar without a print button on it. If the print feature is used, we 
would go from SET RESOURCE OFF to having a resource file that would then 
need to be cleaned up on shutdown.

However, since restoring the SET RESOURCE value is only applicable when 
shutting down my app in the IDE, I just did this:

IF (NOT "6" $ OS()) OR _VFP.StartMode = 0
      IF FILE( (PreviouslyStoredPath\FileLocationForResourceTable))
           SET RESOURCE TO (TheOldResourceTo)
      ENDIF
ENDIF

That fixed the problem.

So thanks Fred.

I still have the issue of not being able to make my automation code work in 
Windows 7 when running as a restricted Domain User. I think I'll start a 
new thread on that and summarize everything so far.

Ken Dibble
www.stic-cil.org


_______________________________________________
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