<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Not able to add border to table using proc print; ods to a mail in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-able-to-add-border-to-table-using-proc-print-ods-to-a-mail/m-p/617409#M23697</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44456"&gt;@upadhi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;no luck! this is not working&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please post the code!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mail email from="xxxxxxx" to="xxxxxxxx" subject="with borders" content_type="text/html";
ods html body=mail;

proc print data=sashelp.class(obs=4) noobs style={bordercolor=black borderwidth=1px borderstyle=solid};
run;

ods html close;
filename mail clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="community_mail_borders.PNG" style="width: 272px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35333iC0203B737109DC24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="community_mail_borders.PNG" alt="community_mail_borders.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jan 2020 11:54:08 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2020-01-15T11:54:08Z</dc:date>
    <item>
      <title>Not able to add border to table using proc print; ods to a mail</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-able-to-add-border-to-table-using-proc-print-ods-to-a-mail/m-p/617388#M23694</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use SAS proc print and ODS mail. The issue I am facing is while trying to add border in the table, I am able to print border in the SAS EG output window but the same code is not working in mail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is the code I am using expected output and output I am getting.&lt;/P&gt;
&lt;P&gt;Kindly Help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected output (Output in SAS EG)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expected table.PNG" style="width: 110px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35330i70DB92ACB877D4B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Expected table.PNG" alt="Expected table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Output I am getting (Output in Email)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Received Output.PNG" style="width: 128px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35331i7F49F09FA6EC2A2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Received Output.PNG" alt="Received Output.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options emailsys=xxxx emailhost=mail.xxx.in emailport=&lt;STRONG&gt;xxx&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;filename mail&lt;/P&gt;
&lt;P&gt;email to=("xxx.com")&lt;/P&gt;
&lt;P&gt;from="xxx.com"&lt;/P&gt;
&lt;P&gt;subject="Testing"&lt;/P&gt;
&lt;P&gt;content_type="TEXT/HTML";&lt;/P&gt;
&lt;P&gt;ods html3 body = mail&lt;/P&gt;
&lt;P&gt;style=htmlblue;&lt;/P&gt;
&lt;P&gt;ods escapechar='^';&lt;/P&gt;
&lt;P&gt;ODS TEXT="^S={font_face='Calibri' font_size=2 fontweight=Medium foreground=black}&lt;/P&gt;
&lt;P&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;Testing&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;";&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;print&lt;/STRONG&gt; data=x&lt;/P&gt;
&lt;P&gt;style(data)=[frame = box&lt;/P&gt;
&lt;P&gt;bordercolor=black&lt;/P&gt;
&lt;P&gt;background=white]&lt;/P&gt;
&lt;P&gt;style(obsheader)={background=#C00000 color=white&lt;/P&gt;
&lt;P&gt;font_size=&lt;STRONG&gt;7&lt;/STRONG&gt;pt&lt;/P&gt;
&lt;P&gt;bordercolor=black&lt;/P&gt;
&lt;P&gt;just = c}&lt;/P&gt;
&lt;P&gt;style(header)={background=#C00000 color=white&lt;/P&gt;
&lt;P&gt;font_size=&lt;STRONG&gt;7&lt;/STRONG&gt;pt&lt;/P&gt;
&lt;P&gt;bordercolor=black&lt;/P&gt;
&lt;P&gt;just = c}&lt;/P&gt;
&lt;P&gt;style(obs)={background=white color=black&lt;/P&gt;
&lt;P&gt;font_size=&lt;STRONG&gt;6&lt;/STRONG&gt;pt&lt;/P&gt;
&lt;P&gt;bordercolor=black};&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;
&lt;P&gt;ods html3 close;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 08:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-able-to-add-border-to-table-using-proc-print-ods-to-a-mail/m-p/617388#M23694</guid>
      <dc:creator>upadhi</dc:creator>
      <dc:date>2020-01-15T08:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to add border to table using proc print; ods to a mail</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-able-to-add-border-to-table-using-proc-print-ods-to-a-mail/m-p/617391#M23695</link>
      <description>&lt;P&gt;This could be caused by using a crappy mail-client like Outlook, in which even the most basic css features seem to be not yet implemented. Try adding&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;bordercolor=black borderwidth=1px borderstyle=solid&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to the style-option.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 09:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-able-to-add-border-to-table-using-proc-print-ods-to-a-mail/m-p/617391#M23695</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-01-15T09:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to add border to table using proc print; ods to a mail</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-able-to-add-border-to-table-using-proc-print-ods-to-a-mail/m-p/617395#M23696</link>
      <description>&lt;P&gt;no luck! this is not working&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 09:48:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-able-to-add-border-to-table-using-proc-print-ods-to-a-mail/m-p/617395#M23696</guid>
      <dc:creator>upadhi</dc:creator>
      <dc:date>2020-01-15T09:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to add border to table using proc print; ods to a mail</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-able-to-add-border-to-table-using-proc-print-ods-to-a-mail/m-p/617409#M23697</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44456"&gt;@upadhi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;no luck! this is not working&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please post the code!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mail email from="xxxxxxx" to="xxxxxxxx" subject="with borders" content_type="text/html";
ods html body=mail;

proc print data=sashelp.class(obs=4) noobs style={bordercolor=black borderwidth=1px borderstyle=solid};
run;

ods html close;
filename mail clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="community_mail_borders.PNG" style="width: 272px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35333iC0203B737109DC24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="community_mail_borders.PNG" alt="community_mail_borders.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 11:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-able-to-add-border-to-table-using-proc-print-ods-to-a-mail/m-p/617409#M23697</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-01-15T11:54:08Z</dc:date>
    </item>
  </channel>
</rss>

