|
After some tests, it seems to me that the thinnest border one can specify
is 1pt or 1px, as Mark mentioned in his post. But, because each cell
is adjacent to another cell, the border is actually made of two cell's
wall, which double the thickness of the gridline. To make it a real one
pixels thick line, the only way is to turn one side of the cell wall color
to white, and keep the other side of wall black. The effect of this
arrangement is that on the adjacent two cell wall only one is shown, which
then has an visual effect of 1px thickness.
class Cell /
bordertopwidth = 1px
borderbottomwidth = 1px
borderleftwidth = 1px
borderrightwidth = 1px
bordertopcolor = white
borderbottomcolor = black
borderleftcolor = white
borderrightcolor = black
;
This trick still has one slight drwaback: on the very left side
of the table, since no other cell is adjacent, it will not have the
gridline, even when frame = box is used for output class.
On Wed, 18 Jan 2012 14:21:57 -0500, KarlK <karlstudboy@HOTMAIL.COM> wrote:
>Well, I may have an answer, but I confess I'm unsure why it works. It's
>partly an inheritance issue: Cell inherits from Container, not from
>Output. The below worked for me, using 9.2 on Windows and the PDF
>destination:
>--------------------------------
>proc template;
>define style aepc;
>parent=styles.default;
>class Output from Container /
>rules = all
>frame = below
>;
>class Cell /
>bordertopwidth = 2pt
>borderbottomwidth = 2pt
>borderleftwidth = 2pt
>borderrightwidth = 2pt
>;
>end;
>run;
>
>ods listing close;
>ods pdf notoc file="c:\windows\temp\junk.pdf" style=aepc;
>
>proc print data=sashelp.class (obs=5);
> title "Tester";
>run;
>
>ods pdf close;
>ods listing;
>---------------------------------------------
>(I know you wanted a SMALLER borderwidth, but this is just for testing
>purposes.) What I don't know is why I had to specify all 4
>borderXXXwidth's. It seems like borderwidth alone should have done it.
>
>Hope this helps.
>
>On Wed, 18 Jan 2012 13:24:32 -0500, Ya Huang <ya.huang@AMYLIN.COM> wrote:
>
>>Not that I know of. Here is my proc tempalte:
>>
>>proc template;
>>define style aepc;
>>parent=styles.default;
>>class fonts /
>>'TitleFont2' = ("Times New Roman",10pt)
>>'TitleFont' = ("Times New Roman",10pt)
>>'StrongFont' = ("Times New Roman",10pt)
>>'EmphasisFont' = ("Times New Roman",10pt)
>>'FixedEmphasisFont' = ("Times New Roman",10pt)
>>'FixedStrongFont' = ("Times New Roman",10pt)
>>'FixedHeadingFont' = ("Times New Roman",10pt)
>>'BatchFixedFont' = ("Times New Roman",10pt)
>>'FixedFont' = ("Times New Roman",10pt)
>>'headingEmphasisFont' = ("Times New Roman",10pt,bold)
>>'headingFont' = ("Times New Roman",10pt,bold)
>>'docFont' = ("Times New Roman",10pt)
>>;
>>class Output from Container /
>>rules = all
>>frame = below
>>borderwidth=0.5pt
>>;
>>class color_list
>>"Colors used in the default style" /
>>'fgB2' = cx000000
>>'fgB1' = cx000000
>>'fgA4' = cx000000
>>'bgA4' = cxFFFFFF
>>'bgA3' = cxFFFFFF
>>'fgA2' = cx000000
>>'bgA2' = cxFFFFFF
>>'fgA1' = cx000000
>>'bgA1' = cxFFFFFF
>>'fgA' = cx000000
>>'bgA' = cxFFFFFF
>>'fg'= cx0000FF
>>;
>>end;
>>run;
>>
>>
>>On Wed, 18 Jan 2012 12:47:18 -0500, KarlK <karlstudboy@HOTMAIL.COM>
wrote:
>>
>>>Hmmm, it IS borderwidth. Are you sure you don't have a more specific
>style
>>>element than output (e.g., table or cell) resetting your borderwidth
>>>elsewhere in the style template?
>>>
>>>Karl
>>>
>>>On Wed, 18 Jan 2012 12:26:02 -0500, Ya Huang <ya.huang@AMYLIN.COM>
wrote:
>>>
>>>>Hi there,
>>>>
>>>>Can't remeber which style attribute control the grid line thickness,
>>>>tried the following and didn't have any effect.
>>>>
>>>>class Output from Container /
>>>>rules = all
>>>>frame = below
>>>>borderwidth=0.5pt
>>>>;
>>>>
>>>>Currently, the grid line by default looks too bold, would like to
>>>>make it thinner.
>>>>
>>>>Thanks
>>>>
>>>>Ya
|