本文介绍了Excel COM的编码错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将数据从DataGridView Control下载到Excel 2007,但是由于编码错误,您可以在下面的代码中看到:(我使用VS2008 + Windows XP + Excel 2007),
而且我认为该代码在Excel 2003中使用,但是我没有安装Office2003.
代码:
//建立Excel对象

I try to download data from DataGridView Control to Excel 2007,but exsiting coding error,you can see below the code :(i use VS2008 + Windows XP + Excel 2007),
and i think the code is used in Excel 2003 but i don''t install Office 2003.
CODE:
//建立Excel对象

using Excel = Microsoft.Office.Interop.Excel;
Excel.Application excel = new Excel.Application();
excel.Application.Workbooks.Add(true);
excel.Visible = isShowExcle;


如何修改?
谢谢!


*已更新为放入代码块.


How to modify it?
thanks!


*Updated to put in code block.

推荐答案


这篇关于Excel COM的编码错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-28 21:40
查看更多