To get a listing of Wingdings (or other available fonts), click on Windows | All Programs | Accessories | System Tools | Character Map. In the below case, Wingdings was chosen as the font and the bolded down arrow is associated with hex code EA.
<An example using the up (E9) and down (EA) wingding fonts with proc report can be seen below.
proc format ; value arrow low -< 14 = "ea"x 14 - high = "e9"x ; value color low -< 14 = red 14 - high = green ; run ; ods listing close ; ods html file = "c:\temp\wingdings.html" ; proc report data = sashelp.class( obs = 5 ) nowd ; column name age direction ; define name / display ; define age / analysis ; define direction / computed format = arrow. style( column ) = [ font_face = wingdings just = c ] ; compute direction ; direction = age.sum ; call define( "direction", "style", "style = [ foreground = color. ]" ) ; endcomp ; run ; ods html close ; ods listing ;
This is very helpful, but I want to do this with ODS Excel. Does anyone know why Excel can't recognize the wingding font? It reverts to Courier when I change the ODS to Excel.
ReplyDelete