<?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: Modify style of the page of table of content and add a header (PDF) in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modify-style-of-the-page-of-table-of-content-and-add-a-header/m-p/64347#M7510</link>
    <description>Hi:&lt;BR /&gt;
  I am not sure what you mean by "Header" ... when I run Example 1 below, I see the string 'Table of Contents' at the top of my PDF contents page. If you run Example 1 and do NOT see 'Table of Contents' at the top of the page, then you should work with Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
  In Example 2, I create a new style template based on STYLES.PRINTER and change the Content Title style attribute of the TEXT element  to something silly, like "Wombat". Then, when I use the new template, I see the new string in the PDF output -- at the top of the contents information.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
** 1) header is "Table of Contents";&lt;BR /&gt;
ods pdf file='c:\temp\toc.pdf' contents=on;&lt;BR /&gt;
      &lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
proc freq data=sashelp.class;&lt;BR /&gt;
  tables age;&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
                     &lt;BR /&gt;
ods path work.tmp(update) sasuser.templat(update)&lt;BR /&gt;
         sashelp.tmplmst(read);&lt;BR /&gt;
                     &lt;BR /&gt;
proc template;&lt;BR /&gt;
  define style styles.chgtoc;&lt;BR /&gt;
    parent=styles.printer;&lt;BR /&gt;
    class text                                                              &lt;BR /&gt;
       "Common text." /                                  &lt;BR /&gt;
       'Content Title' = "Wombat";&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
                 &lt;BR /&gt;
** 2) Using template Header will be "Wombat";&lt;BR /&gt;
ods pdf file='c:\temp\chgtoc.pdf' contents=on &lt;BR /&gt;
        style=styles.chgtoc;&lt;BR /&gt;
      &lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
                  &lt;BR /&gt;
proc freq data=sashelp.class;&lt;BR /&gt;
  tables age;&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Tue, 10 May 2011 14:21:45 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-05-10T14:21:45Z</dc:date>
    <item>
      <title>Modify style of the page of table of content and add a header (PDF)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modify-style-of-the-page-of-table-of-content-and-add-a-header/m-p/64346#M7509</link>
      <description>Hello,&lt;BR /&gt;
Is it possible to change style of automatically generated table of content (proc report to pdf) and to add a header as it is absent on this page (or custom text before content). If it is, please, give a hint.&lt;BR /&gt;
Regards,&lt;BR /&gt;
vilkis</description>
      <pubDate>Tue, 10 May 2011 13:21:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modify-style-of-the-page-of-table-of-content-and-add-a-header/m-p/64346#M7509</guid>
      <dc:creator>vilkis</dc:creator>
      <dc:date>2011-05-10T13:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Modify style of the page of table of content and add a header (PDF)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modify-style-of-the-page-of-table-of-content-and-add-a-header/m-p/64347#M7510</link>
      <description>Hi:&lt;BR /&gt;
  I am not sure what you mean by "Header" ... when I run Example 1 below, I see the string 'Table of Contents' at the top of my PDF contents page. If you run Example 1 and do NOT see 'Table of Contents' at the top of the page, then you should work with Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
  In Example 2, I create a new style template based on STYLES.PRINTER and change the Content Title style attribute of the TEXT element  to something silly, like "Wombat". Then, when I use the new template, I see the new string in the PDF output -- at the top of the contents information.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
** 1) header is "Table of Contents";&lt;BR /&gt;
ods pdf file='c:\temp\toc.pdf' contents=on;&lt;BR /&gt;
      &lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
proc freq data=sashelp.class;&lt;BR /&gt;
  tables age;&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
                     &lt;BR /&gt;
ods path work.tmp(update) sasuser.templat(update)&lt;BR /&gt;
         sashelp.tmplmst(read);&lt;BR /&gt;
                     &lt;BR /&gt;
proc template;&lt;BR /&gt;
  define style styles.chgtoc;&lt;BR /&gt;
    parent=styles.printer;&lt;BR /&gt;
    class text                                                              &lt;BR /&gt;
       "Common text." /                                  &lt;BR /&gt;
       'Content Title' = "Wombat";&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
                 &lt;BR /&gt;
** 2) Using template Header will be "Wombat";&lt;BR /&gt;
ods pdf file='c:\temp\chgtoc.pdf' contents=on &lt;BR /&gt;
        style=styles.chgtoc;&lt;BR /&gt;
      &lt;BR /&gt;
proc print data=sashelp.class;&lt;BR /&gt;
run;&lt;BR /&gt;
                  &lt;BR /&gt;
proc freq data=sashelp.class;&lt;BR /&gt;
  tables age;&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 10 May 2011 14:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modify-style-of-the-page-of-table-of-content-and-add-a-header/m-p/64347#M7510</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-05-10T14:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modify style of the page of table of content and add a header (PDF)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modify-style-of-the-page-of-table-of-content-and-add-a-header/m-p/64348#M7511</link>
      <description>Thank you. Example 2 is a start. Can I add in such a way some text and a picture above text "Wombat" (Example 2)?&lt;BR /&gt;
Regards,&lt;BR /&gt;
vilkis</description>
      <pubDate>Tue, 10 May 2011 14:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modify-style-of-the-page-of-table-of-content-and-add-a-header/m-p/64348#M7511</guid>
      <dc:creator>vilkis</dc:creator>
      <dc:date>2011-05-10T14:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Modify style of the page of table of content and add a header (PDF)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modify-style-of-the-page-of-table-of-content-and-add-a-header/m-p/64349#M7512</link>
      <description>Hi:&lt;BR /&gt;
  Not sure. Normally, I would use a title statement to get an image (such as a logo) into a PDF file, but with the contents page, there is no title used on that page. So, that leaves you with a style template change to use PREIMAGE on one of the contents-related style elements.&lt;BR /&gt;
&lt;BR /&gt;
  But, I'm not sure that PREIMAGE is one of the style attributes that you can set in a style template for a Table of Contents page. This would be a question for Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 10 May 2011 14:58:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Modify-style-of-the-page-of-table-of-content-and-add-a-header/m-p/64349#M7512</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-05-10T14:58:11Z</dc:date>
    </item>
  </channel>
</rss>

