Click here to Skip to main content
13,287,658 members (47,857 online)
Rate this:
Please Sign up or sign in to vote.
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 17-Aug-11 4:45am
digimanus 17-Aug-11 10:03am
what have you tried?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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?
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Can someone please post the code to merge Excel file using OpenXML? Thanks.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171207.1 | Last Updated 14 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100