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;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.