Am 02.12.2005 0:48 Uhr schrieb "[EMAIL PROTECTED]" unter <[EMAIL PROTECTED]>:

> 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?
Try doing super.appendToResponse last!

{
aResponse.setHeader ("application/csv", "content-type");
aResponse.setHeader ("filename=excel_file.csv", "content-disposition");

super.appendToResponse(aResponse, aContext);
}

I think your code snippet can't work.

Wolfram


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to