Re: Export data to Excel
Re: Export data to Excel
- Subject: Re: Export data to Excel
- From: Ondra Cada <email@hidden>
- Date: Mon, 22 Apr 2002 14:12:37 +0200
On Monday, April 22, 2002, at 08:29 , Peesapaty Ramesh wrote:
i have tried creating a file with extension".xls" and writing data into
it .
but when i am trying to open it asks " choose application"
This looks like Excel does not properly register the "xls" file type. Why
is that you, I am afraid, have to ask M$.
If they ignore file extensions completely -- which would be a grave bug,
but somewhat non surprising one for a Carbon thing -- you have to set an
appropriate Classic type/creator for the file. I haven't tried myself
since I don't like the stuff the slightest bit, but the NSFileManager
method changeFileAttributes:atPath: with attributes
NSFileHFSCreatorCode/TypeCode should help.
and asks for
formating when i select Excel.
This, on the other hand, looks like you set the file contents improperly.
Check the Excel file format documentation (if any -- I don't know, since I
would never use Excel: waiting very anxiously for first release of
FlexiSheet am I, and if I for some reason really needed the traditional
thing, I'd go Mesa).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.