双击文件时,导出的Excel文件无法在少数系统中打开 [英] exported excel file can't open in few systems when double click on file

查看:129
本文介绍了双击文件时,导出的Excel文件无法在少数系统中打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我正在使用VS 2008,asp.net,C#.net.
我有一个使用导出到excel功能的Web应用程序.
双击文件时,导出的excel工作表file.xls在少数系统中无法打开.
每次必须打开时,我们都需要浏览并选择该软件.
如何解决呢?
我正在使用以下代码导出到excel2003.

Hi Friends,

I am using VS 2008,asp.net,C#.net.
I have a web application which uses export to excel features.
The exported excel sheet file.xls is not opening in few systems when double click on file.
We need to browse and select the software each time in which it has to open.
How to solve this?
I am using the following code to export to excel 2003.

Response.ClearContent();
Response.AddHeader("content-disposition", "attachment; filename=file.xls");
Response.ContentType = "application/excel";




在此先感谢
george n t




Thanks in advance
george n t

推荐答案

听起来好像无法打开它的用户使用的是更高版本的Excel,该版本使用.xlsx格式而不是.xls.它仍然兼容.您仍然可以打开它,但是它将向您发出有关其格式的警告.

如果它没有自动打开,只需为其添加一个文件关联.选择打开方式",然后选择"Excel",然后选中始终使用此程序"复选框.
It sounds like the users who can''t open it are using a newer version of Excel which uses .xlsx format instead of .xls. It''s still compatible. You can still open it but it will give you the warning about its format.

If it doesn''t open automatically just add a file association for it. Choose Open With and then select Excel and check the box that says Always use this program.


这篇关于双击文件时,导出的Excel文件无法在少数系统中打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆