Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Automation Problems
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00861104
Message ID:
00861143
Vues:
22
Have you tried setting cIniStr a method. IOW: Assign the property in the Init() or Load() method. You could also experiment wirh FOPEN()/FGETS(), etc; but it seems the FileToStr() should not ne a proble.
>Thanks Terry.
>
>I'd looked at that example and modeled my project after it fairly closely. But, your advice made me compare my code -vs- the sample.
>
>The only difference was that in my code I had some properties defined for my class (the example had no properties, just methods). No big deal, right? WRONG!
>
>The first property that I defined looked something like this:
>cIniStr = FileToStr("myInfo.ini").
>
>From there on, I parsed out the values of each line and put them into their appropriate properties. This worked completely fine through VFP, but for some unknown reason, would cause Excel to only load the DLL the first time it ran, or by going through the list of hoops that I posted originally.
>
>I'm not sure why, but using FileToStr() as a way of assigning a property in my Com Server caused Excel to act up.
>
>I hope this helps someone else, because this was a real PITA to figure out.
>
>Thanks again.
>
>-Matt
>
>Maybe an Excel Com expert will chime in with some enlightenment on why this would happen?
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform