The SAS Output Delivery System and reporting techniques

ExcelXP, PROC TABULATE, font weight and page element

Reply
Regular Contributor
Posts: 178

ExcelXP, PROC TABULATE, font weight and page element

[ Edited ]

So this is a ExcelXP issue, not a PROC TABULATE issue, as I see it.  Can someone show me how to format the fontweight for the page-wise table title, using tagsets.ExcelXP, in the example represented by the variable ORIGIN. 

ods tagsets.excelXP
  file="ex1.xls"
  style=SASdocPrinter;
PROC TABULATE DATA=SASHELP.CARS;
  
  CLASS Make /  ORDER=UNFORMATTED MISSING;
  CLASS Type /  ORDER=UNFORMATTED MISSING;
  CLASS Origin /  ORDER=UNFORMATTED MISSING style=[fontweight=bold ];
  TABLE /* Page Dimension */
    Origin,
    /* Row Dimension */
    Make,
    /* Column Dimension */
    Type*
      N     ;
RUN;
ods tagsets.excelXP close;

 

Super User
Posts: 11,765

Re: PROC TABULATE, font weight and page element

The style information goes on the CLASS statement.

PROC TABULATE DATA=SASHELP.CARS;
  
  CLASS Make /  ORDER=UNFORMATTED MISSING;
  CLASS Type /  ORDER=UNFORMATTED MISSING;
  CLASS Origin /  ORDER=UNFORMATTED MISSING style=[fontweight=light fontsize=25pt];
  TABLE /* Page Dimension */
    Origin,
    /* Row Dimension */
    Make,
    /* Column Dimension */
    Type*
      N     ;
RUN;

BIG size just to show it is taking effect. With that large it looks kind of "bold" but isn't.

 

SAS Super FREQ
Posts: 8,951

Re: PROC TABULATE, font weight and page element

Hi:
I only find BOLD and NORMAL the values that work best for fontweight. I would not expect LIGHT to have much of an impact -- if you want the value to appear lighter, I suggest gray something like color=CXDDDDDD or color=CX999999.
cynthia
Regular Contributor
Posts: 178

Re: PROC TABULATE, font weight and page element

[ Edited ]
Posted in reply to Cynthia_sas

ok. So what I thought was a PROC TABULATE issue is an ExcelXP issue.

SAS Super FREQ
Posts: 8,951

Re: PROC TABULATE, font weight and page element

Hi:

  Can you try ODS EXCEL instead of TAGSETS.EXCELXP? This is what I got using ODS EXCEL:

 

try_ods_excel.png

 

cynthia

Regular Contributor
Posts: 178

Re: PROC TABULATE, font weight and page element

Posted in reply to Cynthia_sas

yes.  We've yet to install SAS4M5 here, and I'm hoping the "FLOW" option works then for me, first, until then I'm going to use ExcelXP.  ExcelXP has been so great, and its surprising when any of these great SAS products don't do that one thing.  thanks

SAS Super FREQ
Posts: 8,951

Re: PROC TABULATE, font weight and page element

ODS Excel is production and has been for a while. I am still running 9.4 M3 and that's what I used for this screen shot.
Cynthia
Ask a Question
Discussion stats
  • 6 replies
  • 94 views
  • 0 likes
  • 3 in conversation