BookmarkSubscribeRSS Feed
hhchenfx
Rhodochrosite | Level 12

Hi,

I run this code and the header font and size is correct.

However, the body table has font is Arial with font_size 9.5 instead of Calibri 10.

 

I run the proc registry and Calibri is listed on log file.

proc registry
startat='core\printing\freetype\fonts'
list
levels=1
;run;

 

Please help me to fix it.

 

Thank you so much.

HHCFX

 

 

ods listing close;
ods excel file="C:\Users\_temp\exp6.xlsx"   
                    options (sheet_interval = "none" sheet_name = "T7" );

	proc report data=T7_short nowd
	STYLE(Header)={background=charcoal foreground=white }		/*top row*/
     	style(header)={font_face="Times New Roman" font_size=11pt}
     	style(report)={font_face="Calibri" font_size=11pt};

		column project_code	Total_cost total_hour ;


		compute Total_cost;
		call define (_col_,"style","style={background=gray}");
			endcomp;

		compute total_hour;
		call define (_col_,"style","style={background=lightgray}");
			endcomp;

		run;
ods excel close;

 

1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
Style(report) will NOT change the data cells. Have you tried style(column) instead? You usually use style(report) for table level settings like interior tables lines, whether there's a frame around the table and overall table width, etc.

Cynthia

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
  • 1 reply
  • 1442 views
  • 0 likes
  • 2 in conversation