如何将2007年的Excel工作表转换为2003年的Excel工作表 [英] How to convert excel worksheet in 2007 to excel worksheet in 2003

查看:121
本文介绍了如何将2007年的Excel工作表转换为2003年的Excel工作表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用excel工作表将一些信息上传到数据库.
我在写:

I am using excel sheet to upload some information to database.
I am writing:

String conectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + excelFile + ";Extended Properties=Excel 8.0;";


作为连接字符串.
但是,当我在2007年(.xlsx)上传excel文件时出现异常.

我想将2007年的Excel工作表转换为2003年,即将.xlsx转换为.xls.

我尝试了saveas,但无法正常工作.


as connection string.
But, when I am uploading a excel file in 2007(.xlsx) is is giving an exception.

I want to convert excel sheet of 2007 to 2003 i.e. .xlsx to .xls.

I tried saveas but it is not working.

推荐答案

在Excel中,另存为功能提供了另存为Excel 97-2003文件的选项. 我想这就是您要保存的方式,而不是以编程方式打开/保存的方式?


这可能有帮助 [ ^ ]
Within Excel, the save as function gives the option of saving as an Excel 97-2003 file.
I presume this is how you are saving it, rather than open/save programmatically?


This may help[^]


这篇关于如何将2007年的Excel工作表转换为2003年的Excel工作表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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