Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# XML .NET
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
Comments
digimanus at 17-Aug-11 10:03am
   
what have you tried?
Rate this: bad
good
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?
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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



Advertise | Privacy | Mobile
Web03 | 2.8.1411022.1 | Last Updated 14 Nov 2012
Copyright © CodeProject, 1999-2014
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