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

  • Home
  • SEARCH
  • 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 669415
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:08:55+00:00 2026-05-14T00:08:55+00:00

I’m creating excel spreadsheets for reports using the XML method, where you export a

  • 0

I’m creating excel spreadsheets for reports using the XML method, where you export a valid Microsoft formatted XML, and then export it to Excel.

So far everything works as it should, but I’m having some trouble with the colours.

I’ve created one style such as:

<Style ss:ID="s64" ss:Parent="s25">
      <Font ss:FontName="Tahoma" x:Family="Swiss" ss:Size="14" ss:Color="#4579B9" ss:Bold="1"/>
      <Interior/>
</Style>

The colours it’s supposed to use, should look like the but on the top of this image:

alt text http://img535.imageshack.us/img535/431/righty.jpg

However, the colour it’s using the the one on the bottom.

When I generate the report, it’s generated with the colour code: #4579B9, which is what I want, but when I open it, it’s displaying the colour as the one from the bottom of the image.

If I then save the document, it automatically changes the colour to be #666699, which is exactly what the colour on the bottom (wrong colour) is.

This however only happens with font colours, as if I change the background colour of any cell to be #4579B9, it will work normally.

I’m thinking it’s got something to do with the colour selected being part of the “theme colours” as opposed to the “standard colours”.

Does anyone here have any experience generating these kind of reports, and applying styles to it correctly? Or am I missing something?

  • 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-14T00:08:56+00:00Added an answer on May 14, 2026 at 12:08 am

    I believe you are using Excel 2007 because of the colors you are using and you mentioned theme. The following color information is for Excel 2003, which is the only version I have experience with using SpreadsheetXML (XMLSS).

    Excel 2003 only supports a limited number of colors. Since the specified color is not part of the color palette, the closest matching color is used. What you need to do is specify a different color palette or match your color to one of the default colors.

    Following is an example of defining the color palette for a workbook. I reduce the color at Index #1, usually White, to a lighter shade of White (255, 253, 253).

     <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
      <RelyOnVML/>
      <AllowPNG/>
      <Colors>
       <Color>
        <Index>1</Index>
        <RGB>#FFFDFD</RGB>
       </Color>
      </Colors>
     </OfficeDocumentSettings>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 343k
  • Answers 343k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer IMHO there are the following types of exceptions in a… May 14, 2026 at 5:29 am
  • Editorial Team
    Editorial Team added an answer With respect to computational efficiency I would recommend doing this… May 14, 2026 at 5:29 am
  • Editorial Team
    Editorial Team added an answer [tongue in cheek] It's not that it "can't" render Flash,… May 14, 2026 at 5:29 am

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I want use html5's new tag to play a wav file (currently only supported
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I've got a string that has curly quotes in it. I'd like to replace
In order to apply a triggered animation to all ToolTip s in my app,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.