Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to export a report to Excel
Message
De
07/07/1998 17:29:38
 
 
À
07/07/1998 14:54:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00115021
Message ID:
00115065
Vues:
18
>>I used the following code to open an Excel Sheet.
>>
>>objExcel = create("Excel.Sheet")
>>
>>objExcel.Cells.Column = 1 && try to locate the cell to post value
>>objExcel.Cells.Row = 2
>>.....
>>
>>When objExcel.Cells.Column=1 is executed, it generates VFP.exe error and shuts off the VFP.
>>
>>How can I locate the Excel Cells to post value?
>
>Something like objExcel.Cells(1,2).value="..."
>However, if you want to send data from VFP to Excel, it's much faster to use COPY TO or EXPORT command, and then open file in Excel using OLE if necessary.


Thank you for your response. I tried objExcel.Cells(1,2).Value="..." as VFP sample demonstrated. But it did not work. That statement will cause ole error: unknown object. I am not familiar with Excel. I guess I do not know what correct Excel object and method I should be used.

I am trying to use Excel as a report writer. For that reason, I does not use file export.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform