更新时间:2023-02-12 21:53:59
一个选项如下:
1.使用Microsoft.Office.Interop.Excel
创建一个新的Excel文件。
2.打开每个excel文件并将内容写入新创建的excel文件。
3.保存新创建的excel文件。
4.从新创建的excel文件生成PDF文件。
使用Microsoft.Office.Interop.Excel $的示例这里给出了c $ c>。
http ://msdn.microsoft.com/en-us/library/ms173186(v = vs.80).aspx [ ^ ]
One option is as follows:
1. Create a new excel file usingMicrosoft.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 usingMicrosoft.Office.Interop.Excel
is given here.
http://msdn.microsoft.com/en-us/library/ms173186(v=vs.80).aspx[^]