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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1445 views
  • 0 likes
  • 2 in conversation