Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fox& Excel OLE Command to save the final product.??????
Message
From
24/09/1999 04:54:31
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/09/1999 17:50:00
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00268283
Message ID:
00268390
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform