BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Smijoss
Fluorite | Level 6

Hi,

I have a question on background coloring in the output created from ODS excelxp.  When i run the program i notice that the background is always white for the entire excel sheet.

Does this have any performance issue - would it help if I could make all cells transparent ?

The "Collecting" Status in SAS eg  take a while to load the output,  trying to see if i can reduce the style and load excel quicker.

I tried the following code, but only the data cell have a transparent background, all the cells outside the box still have white background.  Please see the attachmen.

Proc template

define style styles.test;

parent=styles.minimal;

style body from body /

background=transparent;

style table from table /

cellspacing=0

borderwidth=0;

end;

Run;


background.JPG
1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26

Hi, I am not sure, exactly, what you are trying to do. If you want to see the "grid" lines in the Excel sheet, then you have to do more than change the style. Please refer to this Tech Support note (46949 - You cannot use a style template with the ExcelXP tagset to add grid lines to the body of a w...) for the complete code that you have to implement. If you need help getting the code to work on your server and EG configuration, then the best thing to do would be to work with Tech Support.

  The ExcelXP output is XML which corresponds to the Microsoft specification, I doubt that the background color is making EG take time to load the output. But again Tech Support can work with you on this.

cynthia

View solution in original post

2 REPLIES 2
Cynthia_sas
Diamond | Level 26

Hi, I am not sure, exactly, what you are trying to do. If you want to see the "grid" lines in the Excel sheet, then you have to do more than change the style. Please refer to this Tech Support note (46949 - You cannot use a style template with the ExcelXP tagset to add grid lines to the body of a w...) for the complete code that you have to implement. If you need help getting the code to work on your server and EG configuration, then the best thing to do would be to work with Tech Support.

  The ExcelXP output is XML which corresponds to the Microsoft specification, I doubt that the background color is making EG take time to load the output. But again Tech Support can work with you on this.

cynthia

Smijoss
Fluorite | Level 6

Thanks Cynthia, it worked Smiley Happy

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 3093 views
  • 0 likes
  • 2 in conversation