C#中的Excel编程复制,粘贴功能 [英] Excel Programming in C# copy,paste feature

查看:410
本文介绍了C#中的Excel编程复制,粘贴功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我制作了一个应用程序,可以在c#中进行一些excel编程.

基本上,它从col1和col2读取数据,然后从中生成图表.
现在我有100多个图表,所以我要做的是从excel工作表中复制所有这些图表并将其全部粘贴到新的Microsoft Word文档中,或者另一个选择是可以首先将所有图表复制并粘贴到excel中,然后将excel文件转换为Microsoft Word文件.

我已经尝试了所有可能性,但找不到Microsoft Word称为复制/粘贴的东西.

谢谢和欢呼,
Mohit.

Hello All,

I have made an application which does some excel programming in c#.

Basically it reads data from col1 and col2 and then generates chart from that.
Now I have 100+ charts so what I want to do is copy all those charts from excel worksheet and paste them all in new Microsoft Word document or another option could be copy and paste all charts in excel first then convert excel file to Microsoft Word file.

I have tried all possibilities but I couldn''t find anything called copy/paste for Microsoft word.

Thanks and cheers,
Mohit.

推荐答案

听起来好像您需要 Microsoft Office Interop [ ^ ].

这将使您几乎可以执行任何Office操作.
It sounds as if you need Microsoft Office Interop[^].

This will enable you to perform practically any Office operation.


回答有关图纸名称的其他问题...
在此处查看 [ ^ ].
In answer to the other question about sheet names...
see here[^].


这篇关于C#中的Excel编程复制,粘贴功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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