Re: CSV problem
Re: CSV problem
- Subject: Re: CSV problem
- From: David Holt <email@hidden>
- Date: Thu, 1 Dec 2005 16:05:53 -0800
Could it be something to do with the differences between Windows and Mac line endings?
David
--
We don't know who discovered water, but we're certain it wasn't a fish.
John Culkin
<x-tad-smaller>from Sunbeams: http://www.thesunmagazine.org</x-tad-smaller>
On 1 Dec 2005, at 3:48 PM, email@hidden wrote:
My app generates CSV files from WORepetitions which open well via Excel on the Mac but in Windows Excel it shows the source instead of opening properly.
On each string I set the escape HTML to NO and used the following code:
public void appendToResponse (WOResponse aResponse, WOContext aContext)
{
super.appendToResponse(aResponse, aContext);
aResponse.setHeader ("application/csv", "content-type");
aResponse.setHeader ("filename=excel_file.csv", "content-disposition");
}
Has anyone had this problem and or does anyone have a suggested solution?
Thanks,
--Mat
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden