• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CSV problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CSV problem


  • Subject: Re: CSV problem
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 1 Dec 2005 16:43:32 -0800


On Dec 1, 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?


All Windows machines, or the one you are testing on? What happens if you save the .csv file to disk on Windows and double click on it? Does it get recognized as an Excel file? You might also try some MIME alternatives for CSV from here http://filext.com/detaillist.php? extdetail=CSV



Chuck

--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________ 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
References: 
 >CSV problem (From: email@hidden)

  • Prev by Date: Re: CSV problem
  • Next by Date: Re: CSV problem
  • Previous by thread: Re: CSV problem
  • Next by thread: Re: CSV problem
  • Index(es):
    • Date
    • Thread