将多个excel文件合并为单个文件 [英] Merging multiple excel file into single file

查看:76
本文介绍了将多个excel文件合并为单个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





流程:



报告以excel格式生成。然后它被转换为pdf。

那么,如何将多个excel文件合并为单个excel转换为一个pdf。



谢谢,

B.Velmurugan

Hi ,

Process :

Reports are being generated in excel. then it is converted as pdf.
So , How to merge multiple excel files to single excel to convert as one pdf.

Thank you,
B.Velmurugan

推荐答案

一个选项如下:



1.使用 Microsoft.Office.Interop.Excel 创建一个新的Excel文件。

2.打开每个excel文件并将内容写入新创建的excel文件。

3.保存新创建的excel文件。

4.从新创建的excel文件生成PDF文件。



使用 Microsoft.Office.Interop.Excel

http ://msdn.microsoft.com/en-us/library/ms173186(v = vs.80).aspx [ ^ ]
One option is as follows:

1. Create a new excel file using Microsoft.Office.Interop.Excel.
2. Open each of the excel file and write contents to the newly created excel file.
3. Save the newly created excel file.
4. Generate the PDF file from the newly created excel file.

An example for using Microsoft.Office.Interop.Excel is given here.
http://msdn.microsoft.com/en-us/library/ms173186(v=vs.80).aspx[^]


这篇关于将多个excel文件合并为单个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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