I encountered a strange problem where in I have developed 3 reports in SSRS 2008 solution and exported them to excel sheets which exported with the colors (green, red, orange) that are intended. When I try to merge them into one excel sheet by copying all the sheets, I found that the colors are changing wierdly and I had to change them manually. I tried mimicing the same merging using C# code which was also not fruiful.
Changing the colors manually is really tiresome because I have 64 reports in total. Please suggest me something to overcome this issue.
Thanks in advance!!
Edit 4:
I made this console app to mimic what you are doing.
I used the class that you should already have. In the folder “TestingFolder” that you see referenced above, I placed the template and the copies with the formulas. After running the app it combined them just fine and maintained the formatting/formulas.
Edit 5:
I think I may have ended up with something after all.
In that excel code that I gave you, change this:
To this:
What this did for me was keep the coloring and copy the data, but no matter which paste option I used, the column widths did not copy.
Hope this helps even a little bit.