The SAS Output Delivery System and reporting techniques

work with table borders in ODS PDF

Reply
N/A
Posts: 0

work with table borders in ODS PDF

hello all, i would like to have a table with an output just like the one i get with this:

ods html file='temp.html';

proc report data=sashelp.class nowd
style(report)={cellspacing=0 rules=groups};
col sex name height;
define sex / order;;
define height / sum;

compute height;
call define(_col_,"style",
"style={htmlstyle='border-top:1px solid white;
border-left:1px solid white'}");
if height eq '62.8' then
call define(_col_,"style",
"style={htmlstyle='border-left:white'}");
endcomp;

compute name;
call define(_col_,"style",
"style={htmlstyle='border-top:1px solid white;
border-left:1px solid white'}");
if name eq 'Carol' then
call define(_col_,"style",
"style={htmlstyle='border-left:#d3d3d3;border-top:1px solid white'}");
if name eq 'Jane' then
call define (_col_,"style",
"style={htmlstyle='border-top:#d3d3d3;border-left:1px solid white'}");
endcomp;

compute sex;
call define(_col_,"style",
"style={htmlstyle='border-top:1px
solid white'}");
endcomp;
run;

ods html close;

what i want is to make an 'L' shape in some headers.
is there any way to work this out?
i have tried creating templates, but i only can get all/none vertical or horizontal bars, not one specifically.

regards
SAS Super FREQ
Posts: 8,743

Re: work with table borders in ODS PDF

Hi:
In PDF, the HTMLSTYLE attribute does not work. So, you would either have to wait for these text-decoration attributes in SAS 9.2:
http://support.sas.com/rnd/base/topics/new92/92pdf.html

or hope that these RTF border attributes will also work for PDF and printer family destinations in 9.2:
http://support.sas.com/rnd/base/topics/new92/92rtf.html#bordervor

In the meantime, since you can achieve the look you want with HTML, you might investigate whether a 3rd party HTML to PDF converter would work to convert your HTML output -- which can use HTMLSTYLE -- to PDF and whether the borders would convert correctly to PDF.

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