javascript - How to generate .csv file for Excel without error messages? -


the file created in javascript , downloaded through tag. excel complains there wrong file format.

  1. in file format excel not throw errors?
  2. and can generated javascript?

apparently excel wants bom @ beginning, have no idea how change that. file encoded in base64.

first error: file format , extension of 'filename.csv' don't match. file corrupted or unsafe. unless trust source, don't open it. wan open anyway?

second error after yes: excel has detected 'filename.csv' sylk file, cannot load it. either file has errors or not sylk file format. click ok try open file in different format.

does output file start 'id' ? if open csv in text editor , change it. see http://support.microsoft.com/en-us/kb/215591 more info


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -