Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word GetObject() - WHACKED?????
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00538237
Message ID:
00538258
Vues:
10
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform