C#:实现MSOexcel [英] C# : implementing MSOexcel

查看:134
本文介绍了C#:实现MSOexcel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,在这种情况下,我目前正在尝试在程序中实现excel,以便将程序生成的数据转换为表格格式.有一次,我不得不做一个循环,将数据写到excel上的一列中,尽管我发现自己不够熟练,无法获得正确的语法...

我是这样开始的:

So here''s the situation, i''m currently trying to implement excel in my program so it can put the data generated by my program into a table format. At one point, i have to do a loop which will write the data in a column on excel, although i find myself not skilled enough to get the right syntax...

i started that way :

Excel.Worksheet xdata;
y = 2 * x; 

for(x = 0; x < 10; x++)
{
     // i want to fill the first column of data that is  
     // provided by the function y in excel...
     {



我知道这是xdata.cells.等等等等...但是我似乎找不到正确的语法:(

帮助将不胜感激
预先表示感谢.



i know it''s something xdata.cells. something etc etc... but i can''t seem to find the right syntax :(

A help would be greatly appreciated
A BIG thanks in advance.

推荐答案

选择以下选项之一,
Pick one of the following,

  • C# class library for exporting data to CSV/Excel file[^]
  • How to Integrate Excel in a Windows Form Application using the WebBrowser[^]
  • How to automate Microsoft Excel from Microsoft Visual C#.NET [^]
  • and finally export data to excel using C#[^]


这篇关于C#:实现MSOexcel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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