Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GETOBJECT not works?
Message
De
18/03/2001 15:47:27
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
18/03/2001 15:01:28
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00486277
Message ID:
00486330
Vues:
13
All of this is in the Microsoft manuals, and the MSDN Library which is online at http://msdn.microsoft.com/library/default.asp.

You can learn a lot by recording a macro in Excel or Word and opening it in the VBA editor to see what's there. You'll get a lot of ideas for how to write the code in Visual FoxPro.

You might also like reading Tamar Granor and Della Martin's book. See http://www.hentzenwerke.com/catalogavailability/autofox.htm.


>Hi, Thanks for help.
>It works.
>I used
>MDOCFILE = CREATEOBJECT("Excel.Application")
>MDOCFILE.WorkBooks.Add('C:\Excel\MYDOC.XLS')
>MDOCFILE.Visible = .T.
>Then it will open Excel and the file MYDOX.XLS.
>Do you know where can I know it will be ".WorkBooks" in Excel and it will be ".Document" in Word?
>From Mircosoft's manual?
>
>
>>Power,
>>
>>Try:
>>MDOCFILE = CREATEOBJECT("Word.Application")
>>MDOCFILE.Documents.Add('C:\WRDPROC\MYDOC.DOC')
>>MDOCFILE.Visible = .T.
>>
>>>I have tried to put this inside a button
>>>MDOCFILE = GETOBJECT('C:\WRDPROC\MYDOC.DOC')
>>>or
>>>MBUDVAR = GETOBJECT('C:\Excel\aaa.XLS')
>>>and then run it.
>>>I got nothing happened on my screen. A short period of the loading symbol "sand watch" then nothing. What should I do to open an OLE automation object in its application like Excel or Word?
>>>
>>>Power
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform