Click here to Skip to main content
15,918,404 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can someone point me in the right direction?

Using Openxml, how do I create 1 main document and copy data from other excel files to different worksheet tabs in the main document. I was able to create the main excel file but I'm struggling on copy data from a different files.
Posted
Comments
Herman<T>.Instance 17-Aug-11 10:03am    
what have you tried?

So you've created the "main" file and you want to merge other files into it, right?
As you've create the "main" file you know how to write data to it. And one must assume you then also can figure out how to read a file.
So wouldnøt it be obvious just to read each of the other files and add the contents to the "main" file as you go?
 
Share this answer
 
v2
Can someone please post the code to merge Excel file using OpenXML? Thanks.
 
Share this answer
 
Comments
Maciej Los 3-Mar-13 17:54pm    
This is not an answer! Please, remove it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900