Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Including Automation Components in a Project
Message
 
 
To
09/02/2004 21:48:32
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00875738
Message ID:
00875749
Views:
20
Mike,

I was in the process of updating the reply for VFP7, but couldn't since you'd just replied.

Update, I see you are doing this in VFP7 so you have to use an error trap on this
oExcel = createobject( "Excel.Application" )
if ( vartype( oExcel ) != "O" )
   Messagebox( "you must install Excel in order to be able to use this cool feature of my app" )
endif

* Error method of the class trying to run the above code
lparameter nError, cMethod, nLine

if ( nError = 1733 )
   * problem starting up Excel
   return
else
   dodefault( nError, cMethod, nLine )
endif
>You are absolutely right.
>
>I have installed Excel and it works fine now.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform