The SAS Output Delivery System and reporting techniques

ODS HTML style for Excel Output

Reply
Super Contributor
Posts: 316

ODS HTML style for Excel Output

Hi Experts,

I would like to use ods html to output an excel file(since tagsets.excelxp creates larger files). However when I try to generate the file using the style sasweb it is not applied on the excel. For seaside, sansprinter, money, it works.

Please see example code below and please point out if I did something wrong?

data x;

    a = 1;

    b = 2;

run;

ods html file="D:\mytest.xls" style=sasweb;

    proc print data=x;

    run;

ods html close;

SAS Super FREQ
Posts: 8,739

Re: ODS HTML style for Excel Output

Hi:

  Try using a Microsoft-friendly version of HTML markup language. Microsoft does not always like the way that ODS HTML specifies style because Microsoft did not like the HTML 4.0 method of specifying style. That destination would be:

 

ods msoffice2k file="D:\mytest.xls" style=sasweb;

    proc print data=x;

    run;

ods msoffice2k close;

cynthia

Ask a Question
Discussion stats
  • 1 reply
  • 246 views
  • 0 likes
  • 2 in conversation