<?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 Justifying Columns in HTML Excel Files in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Justifying-Columns-in-HTML-Excel-Files/m-p/4334#M1777</link>
    <description>I am trying to create some very simple spreadsheets using HTML (XML output is too large) but would like to right-justify certain columns from a PROC PRINT.  I've tried using .r style with HTMLCSS, but didn't get anywhere.  Not sure what else to try...?</description>
    <pubDate>Mon, 27 Aug 2007 16:35:09 GMT</pubDate>
    <dc:creator>NCNyrk</dc:creator>
    <dc:date>2007-08-27T16:35:09Z</dc:date>
    <item>
      <title>Justifying Columns in HTML Excel Files</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Justifying-Columns-in-HTML-Excel-Files/m-p/4334#M1777</link>
      <description>I am trying to create some very simple spreadsheets using HTML (XML output is too large) but would like to right-justify certain columns from a PROC PRINT.  I've tried using .r style with HTMLCSS, but didn't get anywhere.  Not sure what else to try...?</description>
      <pubDate>Mon, 27 Aug 2007 16:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Justifying-Columns-in-HTML-Excel-Files/m-p/4334#M1777</guid>
      <dc:creator>NCNyrk</dc:creator>
      <dc:date>2007-08-27T16:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Justifying Columns in HTML Excel Files</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Justifying-Columns-in-HTML-Excel-Files/m-p/4335#M1778</link>
      <description>Hi:&lt;BR /&gt;
  I tried this with ODS HTML3&lt;BR /&gt;
[pre]&lt;BR /&gt;
title; footnote;&lt;BR /&gt;
ods html3 file='c:\temp\testjust_ht3.xls' style=sasweb;&lt;BR /&gt;
  proc print data=sashelp.class;&lt;BR /&gt;
    var name /style(data)={htmlstyle="text-align:right;" cellwidth=1in};&lt;BR /&gt;
    var age height;&lt;BR /&gt;
  run;&lt;BR /&gt;
ods html3 close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
And when I opened the HTML 3.2 file with Excel, the Name was right-justified (I made the cellwidth bigger, so you could see the effect without enlarging the name column manually). &lt;BR /&gt;
&lt;BR /&gt;
There must be some difference between HTML 3.2 (ODS HTML3) and the HTML generated by HTMLCSS (ODS HTMLCSS) and Excel's interpretation of the 2 versions of HTML tags -- The "vanilla" HTML 3.2 file and text-align worked with Excel and the HTMLCSS-generated file did not (even though it was HTML 3.2). Very strange -- but it didn't work at all with regular ODS HTML (HTML 4.0 tags) or ODS MSOFFICE2K (MS-HTML tags) -- so I suspect some HTML/Excel strangeness at work.&lt;BR /&gt;
 &lt;BR /&gt;
If you must use HTMLCSS or HTML4, then you might consider contacting Tech Support for further help. &lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 27 Aug 2007 17:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Justifying-Columns-in-HTML-Excel-Files/m-p/4335#M1778</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-27T17:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Justifying Columns in HTML Excel Files</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Justifying-Columns-in-HTML-Excel-Files/m-p/4336#M1779</link>
      <description>That did it!&lt;BR /&gt;
&lt;BR /&gt;
Thanks as always, Cynthia</description>
      <pubDate>Mon, 27 Aug 2007 17:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Justifying-Columns-in-HTML-Excel-Files/m-p/4336#M1779</guid>
      <dc:creator>NCNyrk</dc:creator>
      <dc:date>2007-08-27T17:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Justifying Columns in HTML Excel Files</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Justifying-Columns-in-HTML-Excel-Files/m-p/4337#M1780</link>
      <description>Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
When using the same approach with Proc Report, I do not seem to be able to force the column width using CELLWIDTH...does that option not work in Proc Report in HTML 3.2 code?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Kryn</description>
      <pubDate>Tue, 04 Sep 2007 17:33:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Justifying-Columns-in-HTML-Excel-Files/m-p/4337#M1780</guid>
      <dc:creator>NCNyrk</dc:creator>
      <dc:date>2007-09-04T17:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Justifying Columns in HTML Excel Files</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Justifying-Columns-in-HTML-Excel-Files/m-p/4338#M1781</link>
      <description>Hi:&lt;BR /&gt;
  Well, it may be Tech Support time...when I do this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
title; footnote;&lt;BR /&gt;
ods html3 file='c:\temp\testjust_ht3x.xls' style=sasweb;&lt;BR /&gt;
   &lt;BR /&gt;
  proc report data=sashelp.class nowd;&lt;BR /&gt;
    define name /style(column)={htmlstyle="text-align:right;" cellwidth=2in};&lt;BR /&gt;
    define age / display;&lt;BR /&gt;
    define height /display;&lt;BR /&gt;
  run;&lt;BR /&gt;
ods html3 close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
I get name right-aligned in a BIGGER column -- is it really 2 inches??? It doesn't look like it to me, but it IS bigger than it is without the CELLWIDTH style override. &lt;BR /&gt;
 &lt;BR /&gt;
So, I'm not sure what's happening.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 04 Sep 2007 21:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Justifying-Columns-in-HTML-Excel-Files/m-p/4338#M1781</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-09-04T21:12:56Z</dc:date>
    </item>
  </channel>
</rss>

