<?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: Help in rotating headers in Excel ??? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-in-rotating-headers-in-Excel/m-p/73919#M8419</link>
    <description>Hi:&lt;BR /&gt;
  What is specified in the HTMLSTYLE= attribute are standard CSS property/value attributes -- with the exception of mso-rotate -- which is a Microsoft specific CSS property. So there are 2 things needed to answer this question using the HTMLSTYLE approach:&lt;BR /&gt;
1) Is there a "standard" CSS selector that will do what you want? (vertical align??)&lt;BR /&gt;
2) Will Excel respect the CSS property? Does Microsoft have a different CSS property that would be better to use?&lt;BR /&gt;
 &lt;BR /&gt;
  The Microsoft documentation which includes their list of "mso" CSS properties can be found here:&lt;BR /&gt;
&lt;A href="http://msdn.microsoft.com/en-us/library/aa155477(office.10).aspx" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/aa155477(office.10).aspx&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
You have to download the whole Office HTML and XML "package" to get at the piece you want.&lt;BR /&gt;
 &lt;BR /&gt;
On the other hand, you could try the SAS style attribute approach, just as you have font_weight=bold and background=_undef_, you could try something like:&lt;BR /&gt;
[pre]&lt;BR /&gt;
   style(header)={verticalalign=b font_weight=bold ....};&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
which uses SAS style attributes (not CSS style specifications) to make the change. It may be that you'll find the SAS style attribute is not honored by Excel -- but I think that this is one of the attributes that will work in Excel. However, I generally start with the SAS style attributes first and then move to the CSS/Microsoft CSS attributes and HTMLSTYLE if the SAS style doesn't work.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
 &lt;BR /&gt;
ps...actually, I can't remember whether the attribute is VERTICALALIGN or VALIGN ... but the specification for bottom is B. There's a section in the doc entitled "Style Attributes and Their Values" which is where you'd find the exact attribute name.</description>
    <pubDate>Thu, 01 Oct 2009 15:46:20 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-10-01T15:46:20Z</dc:date>
    <item>
      <title>Help in rotating headers in Excel ???</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-in-rotating-headers-in-Excel/m-p/73918#M8418</link>
      <description>Hi,&lt;BR /&gt;
I'm trying to rotate the variable names in my excel output so that my&lt;BR /&gt;
report looks compact. Right now I have to scroll left as my var names&lt;BR /&gt;
are too big.&lt;BR /&gt;
&lt;BR /&gt;
HEre is what I'm using :&lt;BR /&gt;
&lt;BR /&gt;
proc print data=Visit1&lt;BR /&gt;
style(report)={rules=none }&lt;BR /&gt;
style(header)={font_weight=bold htmlstyle="mso-rotate:90;cellheight:&lt;BR /&gt;
5pt;cellwidth:5pt;&lt;BR /&gt;
border-bottom:5px double red;&lt;BR /&gt;
border-left:none;border-right:none;border-top:5px double red"&lt;BR /&gt;
background=_undef_};&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Using this I was able to rotate the var names 90 degrees but I see lot&lt;BR /&gt;
of empty space which makes the var names row too big than the others.&lt;BR /&gt;
If I decrease the height var names get over lapped. Also I want to&lt;BR /&gt;
justify them to the the bottom end(I'm not sure if left/ right).&lt;BR /&gt;
&lt;BR /&gt;
Appreciate you help....&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Eddie</description>
      <pubDate>Thu, 01 Oct 2009 13:50:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-in-rotating-headers-in-Excel/m-p/73918#M8418</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-01T13:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help in rotating headers in Excel ???</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-in-rotating-headers-in-Excel/m-p/73919#M8419</link>
      <description>Hi:&lt;BR /&gt;
  What is specified in the HTMLSTYLE= attribute are standard CSS property/value attributes -- with the exception of mso-rotate -- which is a Microsoft specific CSS property. So there are 2 things needed to answer this question using the HTMLSTYLE approach:&lt;BR /&gt;
1) Is there a "standard" CSS selector that will do what you want? (vertical align??)&lt;BR /&gt;
2) Will Excel respect the CSS property? Does Microsoft have a different CSS property that would be better to use?&lt;BR /&gt;
 &lt;BR /&gt;
  The Microsoft documentation which includes their list of "mso" CSS properties can be found here:&lt;BR /&gt;
&lt;A href="http://msdn.microsoft.com/en-us/library/aa155477(office.10).aspx" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/aa155477(office.10).aspx&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
You have to download the whole Office HTML and XML "package" to get at the piece you want.&lt;BR /&gt;
 &lt;BR /&gt;
On the other hand, you could try the SAS style attribute approach, just as you have font_weight=bold and background=_undef_, you could try something like:&lt;BR /&gt;
[pre]&lt;BR /&gt;
   style(header)={verticalalign=b font_weight=bold ....};&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
which uses SAS style attributes (not CSS style specifications) to make the change. It may be that you'll find the SAS style attribute is not honored by Excel -- but I think that this is one of the attributes that will work in Excel. However, I generally start with the SAS style attributes first and then move to the CSS/Microsoft CSS attributes and HTMLSTYLE if the SAS style doesn't work.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
 &lt;BR /&gt;
ps...actually, I can't remember whether the attribute is VERTICALALIGN or VALIGN ... but the specification for bottom is B. There's a section in the doc entitled "Style Attributes and Their Values" which is where you'd find the exact attribute name.</description>
      <pubDate>Thu, 01 Oct 2009 15:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Help-in-rotating-headers-in-Excel/m-p/73919#M8419</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-10-01T15:46:20Z</dc:date>
    </item>
  </channel>
</rss>

