BookmarkSubscribeRSS Feed
DavidPhillips2
Rhodochrosite | Level 12

Which option in Enterprise Guide Style manager or .css controls the width of the black boarder.  See image how the header and boarder overlap.  The display is good on the screen but in ODS pdf it looks odd.

 

 

 

 

 

 

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi:

  I couldn't tell whether that was RTF output or PDF output. Consider what happens when I decrease cellpadding in the output, as shown below:

cellpadding_border.png

 

As you can see, some of the letters "touch" the edge of the cell border. This is especially obvious when I go from 1px to 0 in the last 2 examples.

 

Here's the code I used:

ods pdf file='c:\temp\testborder.pdf' startpage=no;

proc report data=sashelp.class (obs=1)
     style(report)={borderwidth=5px bordercolor=black}
     style(header)={background=peachpuff color=black};
	 compute before _page_;
	   line 'borderwidth=5px cellpadding=default';
	 endcomp;
run;

proc report data=sashelp.class (obs=1)
     style(report)={borderwidth=2px bordercolor=black}
     style(header)={background=peachpuff color=black};
	 compute before _page_;
	   line 'borderwidth=2px cellpadding=default';
	 endcomp;
run;

proc report data=sashelp.class (obs=1)
     style(report)={borderwidth=2px bordercolor=black cellpadding=1px}
     style(header)={background=peachpuff color=black};
	 compute before _page_;
	   line 'borderwidth=2px cellpadding=1px';
	 endcomp;
run;

proc report data=sashelp.class (obs=1)
     style(report)={borderwidth=2px bordercolor=black cellpadding=0}
     style(header)={background=peachpuff color=black};
	 compute before _page_;
	   line 'borderwidth=2px cellpadding=0';
	 endcomp;
run;
ods pdf close; 

Depending on the CSS you're starting from or the style template you're starting from, (and you should be starting from a template designed to work with PDF -- like PDF or PEARL), then you'll find multiple places in the CSS file where border-xxx is specified. Typically, the tabular output is controlled by the OUTPUT or TABLE class selectors in a CSS file and the OUTPUT or TABLE style elements in a style template.

 

Cynthia

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 573 views
  • 1 like
  • 2 in conversation