将输出数据写入C中的Excel工作表 [英] Write output data to excel sheets in C

查看:208
本文介绍了将输出数据写入C中的Excel工作表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在那里

我正在使用C,并且希望将我的数据输出到excel文件的各个表中.当前,我正在将制表符分隔的输出数据写入文本文件,然后通过Excel打开它.问题是只有一张纸,并且将所有不同的数据组容纳在一张纸中,很难跟踪结果.我不知道如何在不同的工作表中输出不同的数据组.任何答复表示赞赏.

问候,
Reza

Hi There

I am using C and would like to output my data into various sheets of an excel file. Currently, I am writing the my tab separated output data into a text file and then open it by Excel. The problem is that there is only one sheet and accommodating all different groups of data into a single sheet make it difficult to follow the results. I am wonder how I can output different groups of data in separate sheets. Any reply is appreciated.

Regards,
Reza

推荐答案

我认为最简单的选择(考虑到您正在使用C进行编程,通过COM进行Excel自动化将很麻烦)正在编写宏,将您的CSV文件数据导入多个工作表中.
I think the easiest option (considering you are programming in C, Excel automation via COM would be cumbersome) is writing a Excel macro to import your CSV file data in multiple worksheets.


这篇关于将输出数据写入C中的Excel工作表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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