Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word GetObject() - WHACKED?????
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00538237
Message ID:
00538258
Views:
9
>Does the GetObject work if you follow it with the parameter telling what to bring up?
>
>oMyWord = GETOBJECT("C:\VFPTraining\letter.doc","Word.Application")
>
>Could be .doc is not know what to bring up. Just a guess.

Thanks for the quick reply...

Let me expand a bit on where I want to go with this because having to add the class name defeats the purpose. I want to be able to let the user select a file and then just do a GETOBJECT() to open the appropriate program, Word, Excel, etc. So I don't want to have to name the class to use in GETOBJECT(). Yes, I know I could grab the .doc or .xls extension from the file and create the appropriate type of object with CREATEOBJECT(), but I'd rather be able to use GETOBJECT() and have it figure it out.
Jim Duffy
Microsoft MVP
INETA Speaker
TakeNote Technologies
Developer's Choice Award Winner for Best Training Company
Specializing in VB.NET, ASP.NET, VFP, and SQL Server Training and Development
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform