<?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: align column head to Top via tagsets.excelXP in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/align-column-head-to-Top-via-tagsets-excelXP/m-p/18311#M3635</link>
    <description>Hi:&lt;BR /&gt;
  There is a style attribute called VJUST  and in regular ODS HTML, RTF, PDF, etc, you'd use that. But sometimes Excel doesn't like the SAS style alignment. Perhaps one of the ODS developers knows whether Excel respects VJUST.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
    <pubDate>Fri, 16 May 2008 13:10:03 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-05-16T13:10:03Z</dc:date>
    <item>
      <title>align column head to Top via tagsets.excelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/align-column-head-to-Top-via-tagsets-excelXP/m-p/18310#M3634</link>
      <description>is it simple? &lt;BR /&gt;
 for a worksheet generated via tagsets.excelXP&lt;BR /&gt;
... to modify the column headers handling (PROC TEMPLATE ?) to "Top-align", so that they don't overlap the autofilter widget.&lt;BR /&gt;
&lt;BR /&gt;
I have little confidence as I approach this ... including that I'll be able to find the relevant documentation of the features of PROC TEMPLATE  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Your support is appreciated.. greatly&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 16 May 2008 12:19:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/align-column-head-to-Top-via-tagsets-excelXP/m-p/18310#M3634</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-16T12:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: align column head to Top via tagsets.excelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/align-column-head-to-Top-via-tagsets-excelXP/m-p/18311#M3635</link>
      <description>Hi:&lt;BR /&gt;
  There is a style attribute called VJUST  and in regular ODS HTML, RTF, PDF, etc, you'd use that. But sometimes Excel doesn't like the SAS style alignment. Perhaps one of the ODS developers knows whether Excel respects VJUST.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 16 May 2008 13:10:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/align-column-head-to-Top-via-tagsets-excelXP/m-p/18311#M3635</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-05-16T13:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: align column head to Top via tagsets.excelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/align-column-head-to-Top-via-tagsets-excelXP/m-p/18312#M3636</link>
      <description>Thank you Cynthia....&lt;BR /&gt;
&lt;BR /&gt;
I'm missing something. [pre]ods _all_ close ;&lt;BR /&gt;
ods tagsets.excelxp file= odsout( url= none) rs= none ;&lt;BR /&gt;
ods tagsets.excelxp options( height= '20' &lt;BR /&gt;
              absolute_column_width= '10'   )     ;&lt;BR /&gt;
proc print LABEL data= sashelp.class style(header)={vjust=Top} ;&lt;BR /&gt;
LABEL AGE = 'LETS TRY to wrap A WIDE LABEL FOR AGE' ;&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close ;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: This is the Excel XP tagset (SAS 9.1.3, v1.70, 06/05/07)[/pre] The fileref ODSOUT is effective at delivering the generated xml, into excel.&lt;BR /&gt;
&lt;BR /&gt;
The control of cell heights and column widths work just fine for me.&lt;BR /&gt;
&lt;BR /&gt;
I was hoping to pin down control of justification within the PROC PRINT syntax.&lt;BR /&gt;
Oddly, on the workbook generated, the only cells that do not have  the "wrap" attribute, are the column headers (practicaly the only cells I would want to wrap!)&lt;BR /&gt;
&lt;BR /&gt;
Does this mean I have to go into PROC TEMPLATE ?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 16 May 2008 14:24:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/align-column-head-to-Top-via-tagsets-excelXP/m-p/18312#M3636</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-16T14:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: align column head to Top via tagsets.excelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/align-column-head-to-Top-via-tagsets-excelXP/m-p/18313#M3637</link>
      <description>so, it was time to delve into PROC TEMPLATE (see later).&lt;BR /&gt;
That allowed my proc print syntax to become a little simpler :[pre]proc print LABEL data= sashelp.class style(header)= Header ;[/pre]&lt;BR /&gt;
&lt;BR /&gt;
The definition of the "style(header)= Header" header was made in :[pre]PROC TEMPLATE;&lt;BR /&gt;
  DEFINE style styles.myXstyle  ;&lt;BR /&gt;
    parent = styles.default;&lt;BR /&gt;
    style Header from Header  /&lt;BR /&gt;
        just = left&lt;BR /&gt;
        vjust = top;&lt;BR /&gt;
  END;&lt;BR /&gt;
run;[/pre] and that style with the special Header is invoked with [pre]ods tagsets.excelxp file= odsout( url= none) rs= none  style=myXstyle ; [/pre]&lt;BR /&gt;
&lt;BR /&gt;
It will do for now, but does seem a little convoluted, especially when style requests like justification are able to be defined within the proc print syntax.&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 16 May 2008 15:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/align-column-head-to-Top-via-tagsets-excelXP/m-p/18313#M3637</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-16T15:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: align column head to Top via tagsets.excelXP</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/align-column-head-to-Top-via-tagsets-excelXP/m-p/18314#M3638</link>
      <description>Peter:&lt;BR /&gt;
  In my limited understanding of ExcelXP, I think the issue has to do with how Microsoft respects or does not respect style information. The SAS style template goes into building the in-line style section for the ExcelXP XML file. Then the style overrides that come into the picture, via the procedure syntax are put "down" in the tag for the cell or element itself. &lt;BR /&gt;
&lt;BR /&gt;
I think that Microsoft, by design, mostly respects what comes in via the in-line style section. I do find that backgrounds and foreground colors, fonts, formats and cell types are generally respected when they come into the XML via a style override (procedure syntax) -- but very frequently alignment seems to be ignored.&lt;BR /&gt;
&lt;BR /&gt;
Although it may seem like the PROC TEMPLATE method is convoluted, do remember that if your PROC PRINT was followed by a PROC GLM or a PROC REG or a PROC MEANS, that their headers would ALSO be affected by the STYLE template and since they do not have any internal syntax to change their headers, this is a good thing.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Sat, 17 May 2008 15:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/align-column-head-to-Top-via-tagsets-excelXP/m-p/18314#M3638</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-05-17T15:55:15Z</dc:date>
    </item>
  </channel>
</rss>

