<?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: Writing your own ODS Output CSS StyleSheet for Proc Reports in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Writing-your-own-ODS-Output-CSS-StyleSheet-for-Proc-Reports/m-p/65879#M2249</link>
    <description>Hi:&lt;BR /&gt;
  You might want to open a track with Tech Support on this question, as the use of CSS files with a stored process is usually done with an override to the automatic variable &amp;amp;_ODSSTYLESHEET (same concept as &amp;amp;_ODSDEST). &lt;BR /&gt;
                               &lt;BR /&gt;
However, not all client applications will receive HTML results and some client applications (such as Web Report Studio) require that the CSS be defined in a special XML file that is available on the Middle Tier configuration files.&lt;BR /&gt;
&lt;BR /&gt;
In addition, it is not entirely clear where you expect your &amp;amp;_ODSDEST of TAGSETS.NOSTYLE to be used. In fact, there already is a "nostyle" destination -- well, there are 2 -- ODS PHTML and ODS CHTML -- either of those might work for you instead of trying to come up with your own TAGSET template based on TAGSETS.HTML4. It is possible that a simple override of:&lt;BR /&gt;
[pre]&lt;BR /&gt;
%let _ODSDEST = CHTML;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
might work for you without using a STYLESHEET at all.&lt;BR /&gt;
&lt;BR /&gt;
 I suspect you have some log messages about STYLE not found or TAGSET not found and that means that there is a certain amount of debugging required that will mean that someone has to look at ALL your code and understand your particular method of invoking this stored process. &lt;BR /&gt;
 &lt;BR /&gt;
To send a question to Tech Support, you can go directly to the Tech Support Problem Form here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
    <pubDate>Tue, 01 Feb 2011 18:41:02 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-02-01T18:41:02Z</dc:date>
    <item>
      <title>Writing your own ODS Output CSS StyleSheet for Proc Reports</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Writing-your-own-ODS-Output-CSS-StyleSheet-for-Proc-Reports/m-p/65876#M2246</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
 is there any information available about writing your own stylesheet for outputting proc reports like meadow,sasweb?&lt;BR /&gt;
&lt;BR /&gt;
Or does anyone has experience with this?</description>
      <pubDate>Wed, 26 Jan 2011 08:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Writing-your-own-ODS-Output-CSS-StyleSheet-for-Proc-Reports/m-p/65876#M2246</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-01-26T08:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Writing your own ODS Output CSS StyleSheet for Proc Reports</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Writing-your-own-ODS-Output-CSS-StyleSheet-for-Proc-Reports/m-p/65877#M2247</link>
      <description>Hi:&lt;BR /&gt;
  Are you specifically interested in graphical output or, as implied by your subject, in tabular output created by PROC REPORT??&lt;BR /&gt;
&lt;BR /&gt;
  The easiest way to find out how a SAS style template (like MEADOW or SEASIDE) will translate to CSS style property/value format is to use ODS to create a CSS file for you. You can do this on a one-time basis, by using ODS HTML and the STYLESHEET= option to make a CSS file like this:&lt;BR /&gt;
 [pre]&lt;BR /&gt;
ods html path='c:\temp' (url=none)&lt;BR /&gt;
         file='makecss.html'&lt;BR /&gt;
         style=meadow&lt;BR /&gt;
         stylesheet='copy_of_meadow.css';&lt;BR /&gt;
  proc print data=sashelp.class(obs=1);&lt;BR /&gt;
  run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                          &lt;BR /&gt;
If you use the above code, then the c:\temp directory will hold a file called "copy_of_meadow.css" that you can open with Notepad and edit.&lt;BR /&gt;
 &lt;BR /&gt;
Alternately, if you have SAS Enterprise Guide, there is a very nice Style Wizard that will allow you to make a new CSS file using MEADOW as your starting point (or the style of your choosing). This Style Wizard is actually a CSS editor because EG uses a CSS version of the SAS style templates with the reports created by EG.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 26 Jan 2011 21:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Writing-your-own-ODS-Output-CSS-StyleSheet-for-Proc-Reports/m-p/65877#M2247</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-01-26T21:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Writing your own ODS Output CSS StyleSheet for Proc Reports</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Writing-your-own-ODS-Output-CSS-StyleSheet-for-Proc-Reports/m-p/65878#M2248</link>
      <description>What i maybe forgot to tell is i'm using this in Stored Processes.&lt;BR /&gt;
&lt;BR /&gt;
I got the following for the moment:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-MacroProcReport&lt;BR /&gt;
[pre]&lt;BR /&gt;
/* Stylesheet */&lt;BR /&gt;
%macro use_stylesheet(stylesheet_name);&lt;BR /&gt;
&lt;BR /&gt;
%global _ODSDEST;&lt;BR /&gt;
&lt;BR /&gt;
ODS PATH (prepend) work.templat(update);&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
define tagset tagsets.nostyle;&lt;BR /&gt;
parent=tagsets.html4;&lt;BR /&gt;
embedded_stylesheet=no;&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods html body=_webout &lt;BR /&gt;
stylesheet=(URL="&amp;amp;stylesheet_name");&lt;BR /&gt;
&lt;BR /&gt;
ods html close;&lt;BR /&gt;
&lt;BR /&gt;
%let _ODSDEST=tagsets.nostyle;&lt;BR /&gt;
&lt;BR /&gt;
%mend use_stylesheet;&lt;BR /&gt;
&lt;BR /&gt;
%use_stylesheet(http://imecwww.imec.be/~osp/fab300/test/StyleTest.css);&lt;BR /&gt;
&lt;BR /&gt;
[\pre]&lt;BR /&gt;
Run MacroProcReport&lt;BR /&gt;
&lt;BR /&gt;
when i look into the source code of the generated HTML there is indeed a link to my stylesheet StyleTest, yet the default stylesheet is still used. can i omit this?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
HTML source:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;LINK rel="stylesheet" type="text/css" href="http://imecwww.imec.be/~osp/fab300/test/ImecStyleTest.css" /&gt;&lt;BR /&gt;
&lt;STYLE type="text/css"&gt;&amp;lt;br&amp;gt;
&amp;lt;!--&amp;lt;br&amp;gt;
.l {text-align: left }&amp;lt;br&amp;gt;
.c {text-align: center }&amp;lt;br&amp;gt;
.r {text-align: right }&amp;lt;br&amp;gt;
.d {text-align: "." }&amp;lt;br&amp;gt;
.t {vertical-align: top }&amp;lt;br&amp;gt;
.m {vertical-align: middle }&amp;lt;br&amp;gt;
.b {vertical-align: bottom }&amp;lt;br&amp;gt;
TD, TH {vertical-align: top }&amp;lt;br&amp;gt;
.stacked_cell{padding: 0 }&amp;lt;br&amp;gt;
--&amp;gt;&amp;lt;br&amp;gt;
&lt;/STYLE&gt;&lt;BR /&gt;
&lt;SCRIPT language="javascript" type="text/javascript"&gt;&amp;lt;br&amp;gt;
&amp;lt;!-- &amp;lt;br&amp;gt;
function startup(){&amp;lt;br&amp;gt;
&amp;lt;br&amp;gt;
}&amp;lt;br&amp;gt;
function shutdown(){&amp;lt;br&amp;gt;
&amp;lt;br&amp;gt;
}&amp;lt;br&amp;gt;
&amp;lt;br&amp;gt;
//--&amp;gt;&amp;lt;br&amp;gt;
&lt;/SCRIPT&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;NOSCRIPT&gt;&lt;/NOSCRIPT&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;SCRIPT language="javascript" type="text/javascript"&gt;&amp;lt;br&amp;gt;
&amp;lt;!-- &amp;lt;br&amp;gt;
var _info = navigator.userAgent&amp;lt;br&amp;gt;
var _ie = (_info.indexOf("MSIE") &amp;gt; 0&amp;lt;br&amp;gt;
          &amp;amp;&amp;amp; _info.indexOf("Win") &amp;gt; 0&amp;lt;br&amp;gt;
          &amp;amp;&amp;amp; _info.indexOf("Windows 3.1") &amp;lt; 0);&amp;lt;br&amp;gt;
&amp;lt;br&amp;gt;
//--&amp;gt;&amp;lt;br&amp;gt;
&lt;/SCRIPT&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;NOSCRIPT&gt;&lt;/NOSCRIPT&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;META name="Generator" content="SAS Software, see www.sas.com" sasversion="9.1" /&gt;&lt;BR /&gt;
&lt;META http-equiv="Content-type" content="text/html; charset=iso-8859-1" /&gt;&lt;BR /&gt;
&lt;TITLE&gt;SAS Output&lt;/TITLE&gt;&lt;BR /&gt;
&lt;STYLE type="text/css"&gt;&amp;lt;br&amp;gt;
&amp;lt;!--&amp;lt;br&amp;gt;
.ContentTitle&amp;lt;br&amp;gt;
{&amp;lt;br&amp;gt;
  font-family: Arial, Helvetica, sans-serif;&amp;lt;br&amp;gt;
  font-size: small;&amp;lt;br&amp;gt;
  font-weight: normal;&amp;lt;br&amp;gt;
  font-style: italic;&amp;lt;br&amp;gt;
  color: #002288;&amp;lt;br&amp;gt;
}&amp;lt;br&amp;gt;
.Output&amp;lt;br&amp;gt;
{&amp;lt;br&amp;gt;
  font-family: Arial, Helvetica, sans-serif;&amp;lt;br&amp;gt;
  font-size: small;&amp;lt;br&amp;gt;
  font-weight: normal;&amp;lt;br&amp;gt;
  font-style: normal;&amp;lt;br&amp;gt;
  color: #002288;&amp;lt;br&amp;gt;
  background-color: #F0F0F0;&amp;lt;br&amp;gt;
  border-width: 1px;&amp;lt;br&amp;gt;
  border-color: #000000;&amp;lt;br&amp;gt;
}&amp;lt;br&amp;gt;
....&amp;lt;br&amp;gt;
[\pre]&amp;lt;br&amp;gt;
[\pre]&lt;/STYLE&gt;</description>
      <pubDate>Tue, 01 Feb 2011 07:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Writing-your-own-ODS-Output-CSS-StyleSheet-for-Proc-Reports/m-p/65878#M2248</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-02-01T07:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Writing your own ODS Output CSS StyleSheet for Proc Reports</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Writing-your-own-ODS-Output-CSS-StyleSheet-for-Proc-Reports/m-p/65879#M2249</link>
      <description>Hi:&lt;BR /&gt;
  You might want to open a track with Tech Support on this question, as the use of CSS files with a stored process is usually done with an override to the automatic variable &amp;amp;_ODSSTYLESHEET (same concept as &amp;amp;_ODSDEST). &lt;BR /&gt;
                               &lt;BR /&gt;
However, not all client applications will receive HTML results and some client applications (such as Web Report Studio) require that the CSS be defined in a special XML file that is available on the Middle Tier configuration files.&lt;BR /&gt;
&lt;BR /&gt;
In addition, it is not entirely clear where you expect your &amp;amp;_ODSDEST of TAGSETS.NOSTYLE to be used. In fact, there already is a "nostyle" destination -- well, there are 2 -- ODS PHTML and ODS CHTML -- either of those might work for you instead of trying to come up with your own TAGSET template based on TAGSETS.HTML4. It is possible that a simple override of:&lt;BR /&gt;
[pre]&lt;BR /&gt;
%let _ODSDEST = CHTML;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
might work for you without using a STYLESHEET at all.&lt;BR /&gt;
&lt;BR /&gt;
 I suspect you have some log messages about STYLE not found or TAGSET not found and that means that there is a certain amount of debugging required that will mean that someone has to look at ALL your code and understand your particular method of invoking this stored process. &lt;BR /&gt;
 &lt;BR /&gt;
To send a question to Tech Support, you can go directly to the Tech Support Problem Form here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt; &lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 01 Feb 2011 18:41:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Writing-your-own-ODS-Output-CSS-StyleSheet-for-Proc-Reports/m-p/65879#M2249</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-02-01T18:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Writing your own ODS Output CSS StyleSheet for Proc Reports</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Writing-your-own-ODS-Output-CSS-StyleSheet-for-Proc-Reports/m-p/65880#M2250</link>
      <description>This is working for me:&lt;BR /&gt;
&lt;BR /&gt;
%macro procreport(table=, cols=, groupvalues=, byvariable=,text1=,text2=);&lt;BR /&gt;
ods html file=_webout stylesheet=(URL="http://imecwww.imec.be/~osp/fab300/test/ImecStyle.css");&lt;BR /&gt;
....&lt;BR /&gt;
%mend;&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Wed, 02 Feb 2011 09:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Writing-your-own-ODS-Output-CSS-StyleSheet-for-Proc-Reports/m-p/65880#M2250</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-02-02T09:22:58Z</dc:date>
    </item>
  </channel>
</rss>

