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
SAS Super FREQ

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
SAS Super FREQ

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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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