ODS and Base Reporting

Build reports by using ODS to create HTML, PDF, RTF, Excel, text reports and more!
BookmarkSubscribeRSS Feed
xueke47
Fluorite | Level 6

Hi all,

 

My company needs to generate some Excel files in the Calibri font. I wrote the code using ODS EXCEL and PROC REPORT that produces the desired output in both SAS Base (9.4 TS1M5) and SAS EG (7.15 HF3) on my company's computers, which are on Windows Server 2012R2. However, when my colleague takes the same code to run in SAS EBI on the CMS server (which is Unix/Linux), the font never comes in Calibri, but other formats of the Excel files are as coded. I did some research and have a clue about the reason. Could someone confirm/disconfirm? Thanks!

 

My guess is that Calibri is not installed/registered on the CMS server, so the SAS EBI there cannot recognize the "font_face=Calibri" option. I get this idea from the post here, but one difference is that our log doesn't have "WARNING: Font specification 'Calibri' failed. Using default font family instead." in it. In addition, if I run the following code in SAS EBI on the CMS server, and don't see Calibri in the log, does this confirm my guess?

 

proc registry startat="\CORE\PRINTING\FREETYPE\FONTS" list levels=1;

run;

 

Thanks!

 

Ke

 

3 REPLIES 3
Cynthia_sas
SAS Super FREQ
Hi:
This is really a question for Tech Support. Note that you typically ONLY get that font warning in Graphics programs, not in regular programs that use procedures like REPORT or TABULATE.

Cynthia
RichardDeVen
Barite | Level 11
Proc QDEVICE REPORT=FONT;

will list all the fonts (Stroke of TrueType) supported by the installation, look for the section such as

...
Supported TrueType Typefaces: Albany AMT (alias: Albany) Arial Symbol Arial Unicode MS (alias: Monotype Sans WT J) AvenirNextforSAS AvenirNextforSAS Light Batang
...

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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
  • 3 replies
  • 1662 views
  • 0 likes
  • 3 in conversation