Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6590761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:20:27+00:00 2026-05-25T17:20:27+00:00

I encountered a strange problem where in I have developed 3 reports in SSRS

  • 0

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!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:20:28+00:00Added an answer on May 25, 2026 at 5:20 pm

    Edit 4:

    I made this console app to mimic what you are doing.

    namespace ExcelConsole
    {
    using System.IO;
    
    using ExcelCombine;
    
    class Program
    {
        public static string Thepath { get; set; }
        public static string TheFirstFile { get; set; }
        public string[] files = null;
    
        static void Main(string[] args)
        {
            Thepath = @"C:\Users\J\Desktop\TestingFolder\";
            string[] files = Directory.GetFiles(Thepath);
            TheFirstFile = files[0];
            ExcelEngine.CombineWorkBooks(Thepath, "*.xls", Thepath, false, TheFirstFile);
        }
    }
    }
    

    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:

     sheetToCopy.Copy(defaultWorksheet)
    

    To this:

    sheetToCopy.Range["A1", "AC60"].Copy();
    newBook.Activate();
    newBook.Sheets.Add(Type.Missing,defaultWorksheet);
    newBook.ActiveSheet.Range["A1", "Z50"].Select();
    
    newBook.ActiveSheet.PasteSpecial(XlPasteType.xlPasteAllUsingSourceTheme);
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have encountered the strange problem, that linux c++ compiler includes the files from
We have encountered a very strange class not found problem in our web app
I have just encountered very strange problem - my GWT app hosted on Google
I have encountered a very strange problem. The jquery slideshow in the below webpage
I've encountered a strange problem in Sql Server. I have a pocket PC application
I have encountered a very strange problem in using jQuery load() . I used
Going deeper in C#, I have encountered a little (strange) problem with object reference
I have encountered a strange problem on one of our machines. It is a
I have a strange problem that I've never encountered before, I have data in
I have just encountered a strange problem when using jQuery Mobile. I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.