<?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: BORDERSTYLE= for PDF report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/803405#M25661</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Your question is nearly two years old but thought it could be interesting for people reading this page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the possible styles attributes for a table in a PDF file:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/n0otdo2g12obp3n0zmnghcn7p4vu.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/n0otdo2g12obp3n0zmnghcn7p4vu.htm&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Only Borderbottomstyle is listed but I don't have any example where it would work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="printer1.JPG" style="width: 978px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69697i706C46F065DDA01B/image-size/large?v=v2&amp;amp;px=999" role="button" title="printer1.JPG" alt="printer1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="printer2.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69698i8CB56A2F46C44917/image-size/large?v=v2&amp;amp;px=999" role="button" title="printer2.JPG" alt="printer2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="printer3.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69699i4B2D3F55579A6AFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="printer3.JPG" alt="printer3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Having say that, let's have a look at an example using colors instead. To make sure that all lines have the same width, overlapping should be avoiding.&lt;/P&gt;
&lt;P&gt;The code is getting heavy. I would rather recommand backgroundcolor attribute to emphasise given cells.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="&amp;amp;xxdemo./test.pdf";

proc print data=sashelp.class noobs
           style(report)=[frame=void rules=none];
           
    var name   / style(header data)=[bordertopwidth   =1px bordertopcolor   =black
                                     borderrightwidth =0px 
                                     borderbottomwidth=1px borderbottomcolor=black
                                     borderleftwidth  =1px borderleftcolor  =black];
                                     
    var age    / style(header)=[bordertopwidth   =1px bordertopcolor   =black
                                borderrightwidth =1px borderrightcolor =black
                                borderbottomwidth=1px borderbottomcolor=orange
                                borderleftwidth  =1px borderleftcolor  =black]
                 style(data)  =[bordertopwidth   =0px      
                                borderrightwidth =1px borderrightcolor =orange       
                                borderbottomwidth=1px borderbottomcolor=orange       
                                borderleftwidth  =1px borderleftcolor  =orange];
                             
    var height / style(header data)=[bordertopwidth   =1px bordertopcolor   =black
                                     borderrightwidth =1px borderrightcolor =black
                                     borderbottomwidth=1px borderbottomcolor=black
                                     borderleftwidth  =0px];
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="printer4.JPG" style="width: 170px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69700iDD39FD38E44D725B/image-size/large?v=v2&amp;amp;px=999" role="button" title="printer4.JPG" alt="printer4.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could proc odstable provides an alternative solution? I haven't investigated it.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 17:21:25 GMT</pubDate>
    <dc:creator>xxformat_com</dc:creator>
    <dc:date>2022-03-22T17:21:25Z</dc:date>
    <item>
      <title>BORDERSTYLE= for PDF report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/652427#M24153</link>
      <description>&lt;P&gt;Hello Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having issues applying borderstyle for PDF reports.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Template for custom style:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Test - 1*/
proc template;
 define style mystyle;
 notes "My Simple Style";

 class table /
 backgroundcolor = White 
 bordercolor = black
 borderstyle = dotted
 borderwidth = 0.1pt
 cellpadding = 5pt
 cellspacing = 0pt
 frame = box
 rules = all
 ;
 end; 
 run;

ods pdf file="/user/test_report.pdf" style=mystyle nobookmarkgen startpage=no;

proc report data=sashelp.class;
column Name Age Height;
run;
ods pdf close;

/* Test -2 */
ods pdf file="/user/test_report.pdf"  nobookmarkgen startpage=no;
proc report data=sashelp.class;
column Name Age Height;
define Name/style(column)=[borderstyle=dotted];
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the pdf report that produced, but borderstyle is not dooted. Where as if I view the proc report result in html I do get dotted lines. Totally confused and not sure what is happening.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 209px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/40245iFD7D61ACDBD0A10F/image-dimensions/209x149?v=v2" width="209" height="149" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected result: Border lines to be 'dotted' in pdf report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additional details:&lt;/P&gt;
&lt;P&gt;Current version: 9.04.01M5P091317&lt;/P&gt;
&lt;P&gt;Operating System: LIN X64&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 04:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/652427#M24153</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2020-06-02T04:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: BORDERSTYLE= for PDF report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/652573#M24154</link>
      <description>&lt;P&gt;See if this has the dotted lines.&lt;/P&gt;
&lt;PRE&gt;ods rtf file="/user/test_report.rtf" style=mystyle nobookmarkgen startpage=no;

proc report data=sashelp.class;
column Name Age Height;
run;
ods rtf close;&lt;/PRE&gt;
&lt;P&gt;You may not be able to do this with PDF.&lt;/P&gt;
&lt;P&gt;The documentation from Borderstyle has this note:&lt;/P&gt;
&lt;DIV id="p0xi2cygmfk0wkn1ei625zq5r488" class="xis-topic"&gt;
&lt;DIV id="p1lbr0kszckgkzn19uov8xf482zg" class="xis-topicContent"&gt;
&lt;DIV id="p0abp0smvw5hsbn1lszzmfkommmc" class="xis-argDescriptionPair"&gt;
&lt;DIV class="xis-argumentDescription"&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD rowspan="2" class="xis-restriction"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;The BORDERTOPSTYLE= attribute is valid only in markup family destinations, the RTF destination, and the Measured RTF destination.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV id="p0xi2cygmfk0wkn1ei625zq5r488" class="xis-topic"&gt;
&lt;DIV id="p1lbr0kszckgkzn19uov8xf482zg" class="xis-topicContent"&gt;
&lt;DIV id="p0abp0smvw5hsbn1lszzmfkommmc" class="xis-argDescriptionPair"&gt;
&lt;DIV class="xis-argumentDescription"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;PDF is in the Printer family of ODS destinations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 14:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/652573#M24154</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-02T14:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: BORDERSTYLE= for PDF report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/652853#M24161</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp; you're right, it is working for RTF and not for PDF. Is there an alternate way to apply for PDF? This limitation made me to switch to R programming to get what I needed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 12:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/652853#M24161</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2020-06-03T12:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: BORDERSTYLE= for PDF report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/652880#M24162</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83078"&gt;@SuryaKiran&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp; you're right, it is working for RTF and not for PDF. Is there an alternate way to apply for PDF? This limitation made me to switch to R programming to get what I needed.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not that I am aware of other than an RTF to PDF converter outside of SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know enough about the inner works of PDF file structures to even guess as to why PDF is treated as a "printer" for ODS purposes but I would guess there is something fundamentally different about how some table characteristics are managed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I generally do not work with PDF output so have not investigated such features.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 14:12:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/652880#M24162</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-06-03T14:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: BORDERSTYLE= for PDF report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/652913#M24163</link>
      <description>Hi:&lt;BR /&gt;  PDF is a proprietary type of file, defined by Adobe and designed to be opened with Adobe products. (Although there are 3rd party products that will open and edit Adobe PDF files). An ODS PDF file is NOT created with a markup language like RTF or HTML. So if there is not a way to convert table lines to dotted in the method we have to use to convert the SAS output to PDF, then that is the reason that borderstyle is not supported.&lt;BR /&gt;  Originally, in the very beginning of ODS, there was only ODS PRINTER -- which was how you sent your output from SAS directly to a printer. Next, there was ODS POSTSCRIPT, which made a .PS file that you could use an Adobe product to "distill" into a PDF format file. Finally, there was ODS PDF, which creates an Adobe binary format file according to the Adobe proprietary specification. This group of ODS destinations is known as the "printer-family" of destinations, because their origin long ago, in a galaxy far, far away, was with the ODS PRINTER destination.&lt;BR /&gt;Cynthia&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jun 2020 15:30:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/652913#M24163</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-06-03T15:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: BORDERSTYLE= for PDF report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/803405#M25661</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Your question is nearly two years old but thought it could be interesting for people reading this page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the possible styles attributes for a table in a PDF file:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/n0otdo2g12obp3n0zmnghcn7p4vu.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/n0otdo2g12obp3n0zmnghcn7p4vu.htm&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;Only Borderbottomstyle is listed but I don't have any example where it would work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="printer1.JPG" style="width: 978px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69697i706C46F065DDA01B/image-size/large?v=v2&amp;amp;px=999" role="button" title="printer1.JPG" alt="printer1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="printer2.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69698i8CB56A2F46C44917/image-size/large?v=v2&amp;amp;px=999" role="button" title="printer2.JPG" alt="printer2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="printer3.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69699i4B2D3F55579A6AFA/image-size/large?v=v2&amp;amp;px=999" role="button" title="printer3.JPG" alt="printer3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Having say that, let's have a look at an example using colors instead. To make sure that all lines have the same width, overlapping should be avoiding.&lt;/P&gt;
&lt;P&gt;The code is getting heavy. I would rather recommand backgroundcolor attribute to emphasise given cells.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="&amp;amp;xxdemo./test.pdf";

proc print data=sashelp.class noobs
           style(report)=[frame=void rules=none];
           
    var name   / style(header data)=[bordertopwidth   =1px bordertopcolor   =black
                                     borderrightwidth =0px 
                                     borderbottomwidth=1px borderbottomcolor=black
                                     borderleftwidth  =1px borderleftcolor  =black];
                                     
    var age    / style(header)=[bordertopwidth   =1px bordertopcolor   =black
                                borderrightwidth =1px borderrightcolor =black
                                borderbottomwidth=1px borderbottomcolor=orange
                                borderleftwidth  =1px borderleftcolor  =black]
                 style(data)  =[bordertopwidth   =0px      
                                borderrightwidth =1px borderrightcolor =orange       
                                borderbottomwidth=1px borderbottomcolor=orange       
                                borderleftwidth  =1px borderleftcolor  =orange];
                             
    var height / style(header data)=[bordertopwidth   =1px bordertopcolor   =black
                                     borderrightwidth =1px borderrightcolor =black
                                     borderbottomwidth=1px borderbottomcolor=black
                                     borderleftwidth  =0px];
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="printer4.JPG" style="width: 170px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69700iDD39FD38E44D725B/image-size/large?v=v2&amp;amp;px=999" role="button" title="printer4.JPG" alt="printer4.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could proc odstable provides an alternative solution? I haven't investigated it.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 17:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/BORDERSTYLE-for-PDF-report/m-p/803405#M25661</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-03-22T17:21:25Z</dc:date>
    </item>
  </channel>
</rss>

