Information générale
Catégorie:
COM/DCOM et OLE Automation
John..
You are a bud.... BUT....
It is clear that you did not test the code I posted. Rather, you relied on the help docs. And, while the help docs were not incorrect, they were not complete either.. You got bit in the butt on this..
Unfortuantely, many people rely on the help files...including some noteable book authors that have frequented the UT lately..< bg >.. The point is simple, you need to actually test and run the code. Many folks don't do this.. And, I know this is not representitive of your posts...
You can make the check out to Main Line Software, Inc....< bg >
>I tried the code that you posted and, you know what?, it worked!!!
>
>So I retract what I said before about your code not working. It does! Sorry!
>
>
>oExcel = Createobject("excel.application")
>oworkbook = oExcel.workbooks.add(Getfile()) && point to an xls file....
>oExcel.visible = .t.
>
>
>
>
>
>>How much money are you willing to bet.........and lose.... The fact is, if you specify and XLS file, it works just file......as well as an XLT...
>>
>>And obviously, there are some error trapping issues the user will need to deal with...
>>
>>Sorry...
>>
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement