Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fox& Excel OLE Command to save the final product.??????
Message
De
24/09/1999 04:54:31
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/09/1999 17:50:00
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00268283
Message ID:
00268390
Vues:
21
>I just created a spreadsheet using fox OLE. I can see the finished product on my screen. What do I write within the code to save the file?
>
>I am typing the following.....My object is called objexcel
>
>delete file (cFilename) && incase it already exists
>
>objexcel.save (cFilename)
>
>
>I am getting an error message as follows:
>OLE DISPATCH EXCEPTION CODE 1004 FROM MICROSOFT EXCEL
>UNABLE TO GET THE SAVE PROPERTY OF THE APPLICATION CLASS.


Jason,
"Save" applies to workbook object and "saveas" to Chart, Workbook or Worksheet objects. It should be :

objexcel.ActiveWorkBook.save && It doesn't have any parameter

If you want to change filename then you would use SaveAs :

objexcel.ActiveWorkBook.saveas(cFileName)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform