Hi Violaine:
When you open your RTF file with Word, you may still see faint gray gridlines -- which is affected by the Show/Hide Gridlines on the Word pull-down menu -- there is no RTF way to touch the Word menus as described in this Tech Support Note:
http://support.sas.com/faq/040/FAQ04024.html
If I try your code in SAS 9.1.3 and open the resulting document with Word, if I have Show Gridlines toggled on, then I still see faint gray gridlines (although they are NOT there when I print). If I have Hide Gridlines toggled on, then I do not see any gridlines for your output.
[pre]
ods path work.tmp(update)
sashelp.tmplmst(read);
Proc Template;
Define Style Style_GLD;
Style Table / BorderColor=black BorderWidth=0 font_face=TIMES Rules=none;
Style Body / protectspecialchars = off font_face=TIMES;
Style Systemtitle / protectspecialchars = off font_face=TIMES;
Style Systemfooter / protectspecialchars = off font_face=TIMES;
Style SysTitleAndFooterContainer / protectspecialchars = off font_face=TIMES;
Style NoteContent / protectspecialchars = off font_face=TIMES;
Style Header / protectspecialchars = off font_face=TIMES;
Style Data / protectspecialchars = off font_face=TIMES;
End;
Run;
ods rtf file='c:\temp\trystyle.rtf' style=style_GLD;
proc print data=sashelp.class;
title 'trying style_GLD';
run;
ods rtf close;
[/pre]
There are a LOT of SAS Tech Support FAQ on removing gridlines -- since there are different ways to do it. And, different destinations can interact with the same style attributes differently. Generally, there is an interaction between cellspacing and table background color -- if cellspacing is greater than 0, then the table background color can show through the cellspacing value. One way to make sure this doesn't happen is to set cellspacing to 0 and the other way to make sure this doesn't happen is to _UNDEF_ (undefine or remove) the table background color.
These are a bunch of reading on the subject:
http://support.sas.com/ctx/samples/index.jsp?sid=286
http://support.sas.com/faq/042/FAQ04218.html
http://support.sas.com/faq/039/FAQ03995.html
http://support.sas.com/faq/039/FAQ03996.html
http://support.sas.com/faq/039/FAQ03997.html
http://support.sas.com/faq/039/FAQ03998.html
http://support.sas.com/faq/032/FAQ03224.html
There are a few things I don't understand about your code -- since you have borderwidth of 0, why even bother to set bordercolor to black? Do you want a black border around the whole table?
For more help with style templates, you might consider contacting Tech Support.
cynthia