Desktop productivity for business analysts and programmers

Change the Background Color of a Custom Html Style

Accepted Solution Solved
Reply
Valued Guide
Posts: 610
Accepted Solution

Change the Background Color of a Custom Html Style

In SAS Enterprise Guide how do I change the background color of a custom html style.  I was able to figure out how to change all of the other elements except it using, Tools> options > Results > HTML > Manage Styles.  I modified the harvest theme.  I’m trying to change the background on the sides from tan to another color.

 

 


Accepted Solutions
Solution
3 weeks ago
Valued Guide
Posts: 610

Re: Change the Background Color of a Custom Html Style

Posted in reply to DavidPhillips2

There is  a bug where all of the theme settings do not take effect until you re-run the stored process and click on the custom report again.  All of the colors updated before that except the background color.  Please fix.

View solution in original post


All Replies
Solution
3 weeks ago
Valued Guide
Posts: 610

Re: Change the Background Color of a Custom Html Style

Posted in reply to DavidPhillips2

There is  a bug where all of the theme settings do not take effect until you re-run the stored process and click on the custom report again.  All of the colors updated before that except the background color.  Please fix.

SAS Super FREQ
Posts: 391

Re: Change the Background Color of a Custom Html Style

Posted in reply to DavidPhillips2

Please provide steps to reproduce. I have not been able to reproduce (using EG 7.15 HF3).

 

Here are the steps I tried:

 

-In a new EG project...

-In Tools->Options->Results->Results General, make sure HTML is checked.

-In Tools->Options->Results->HTML, change style to Harvest.

-Click File->New->Program.

-Copy/paste this code into the new program:

proc print data=sashelp.class;

run;

-Run the code and ensure Harvest style is applied.

-In Tools->Options->Results->HTML, click Manage Styles.

-With Harvest selected, click Create a Copy, and save the copied stylesheet as HarvestCustom.css.

-Select HarvestCustom and click Edit.

-On the Text tab, change Background color to red.

-Click OK to close the Style Editor and click OK to close the Style Manager.

-Make sure HarvestCustom is the selected style for HTML, then click OK to close the Options dialog.

-Click Refresh on the Results or Run on the Program tab (both re-run the program) and confirm the background color of the results is now red.

 

I followed similar steps with a stored process and it worked fine as well. (However, you also have to select HTML as the results format in Tools->Options->Results->Stored Process.)

 

Please provide clear steps to reproduce and we'll investigate.

 

Thanks,

Casey

Valued Guide
Posts: 610

Re: Change the Background Color of a Custom Html Style

Posted in reply to CaseySmith

Casey,

 

"-Click Refresh on the Results or Run on the Program tab (both re-run the program) and confirm the background color of the results is now red."

 

The color refreshes after this step.  The bug is that the user has to refresh or re-run, while other elements refresh instantly.

SAS Super FREQ
Posts: 391

Re: Change the Background Color of a Custom Html Style

Posted in reply to DavidPhillips2

Hi David,

 

Please provide an example of other elements that refresh instantly.  I tried Text size, Text color, Horizontal alignment, Border color, line width, and style, and all of them were applied after re-running the program (not immediately).

 

Casey

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 114 views
  • 0 likes
  • 2 in conversation