---
title: "SYLK: File format is not valid"
author: "cherami"
date: "2007-08-08T02:03:35Z"
tags: []
slug: "sylk-file-format-is-not-valid"
draft: false
lastmod: "2007-08-08T02:03:35Z"
id: 110375
url: "https://cherami.iteye.com/blog/110375"
---

做一个性能分析的报告工具，输出为CSV格式，用Excel打开的时候报错：  
![](http://www.jiehoo.com/wp-content/uploads/2007/08/error.gif)

原来写的一个程序类似，没有任何问题，这个偏偏有问题，搜索了下，没有想到原因竟然如此的BT：  
["SYLK: File format is not valid" error message when you open a file in Excel for Mac](http://support.microsoft.com/kb/215591)

实际上这个问题不光在Mac下有，XP下一样，CSV文件的前两个字母是ID的话就会有问题，但是只要不全是大写就没有问题了，也就是id或者Id都可以。

作者: [解惑/Cherami](http://www.jiehoo.com)  
原载: [SYLK: File format is not valid](http://www.jiehoo.com/sylk-file-format-is-not-valid.htm)  
**版权所有。转载时必须以链接形式注明作者和原始出处及本声明。**  
分类: [其它](http://www.jiehoo.com/category/%e5%85%b6%e5%ae%83/ "显示其它的所有文章")