BookmarkSubscribeRSS Feed
zhaosi
Fluorite | Level 6

Hi:

    I want to control the borderstyle in the rtf table. The following figure is my want. But I don't know how to achieve it. Thanks.

want.png

proc template;                                                               
   define style Test / store = SASUSER.TEMPLAT;                              
      parent = styles.printer;                                               
      style table from table /                                               
         borderbottomstyle = dotted                                          
         bordertopstyle = inset                                              
         borderstyle = dotted                                                
         width = 100%                                                        
         frame = box;                                                        
   end;                                                                      
run;


ods rtf file='D:\temp.rtf' bodytitle style=test;

proc print data=sashelp.class(firstobs=1 obs=5) noobs label;
run;

ods rtf close;

4 REPLIES 4
Andre
Obsidian | Level 7

Zhaosi,

This is another element:

proc template;                                                              

   define style Test / store = SASUSER.TEMPLAT;                             

      parent = styles.printer;                                              

      style table from table /                                              

         borderbottomstyle = dotted                                         

         bordertopstyle = dotted                                           

         borderstyle = dotted                                               

         width = 100%                                                       

         frame = box;

      style header from header/

         borderbottomstyle = inset                                         

         bordertopstyle = inset 

            ;

   end;                                                                     

run;

quit;

André

zhaosi
Fluorite | Level 6

Andre,

    Thanks for your element. It's useful. But still cannot solve all my problem. The last line still be dotted. I want it to be inset. Thank you all the same.

Andre
Obsidian | Level 7

tableelements are dotted or with inset

if you set this for table

  borderbottomstyle = inset

you see immediately that    every  bottom line is with inset!

I see no solution

as ods text= will trace eventually a line  1 cm lower!

and footnote would be to lower

André

zhaosi
Fluorite | Level 6

Uh, I think so. Thanks again.

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1824 views
  • 3 likes
  • 2 in conversation