<?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: How decrease the MS Word header size to create a larger document body? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884464#M26334</link>
    <description>&lt;P&gt;Maybe &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt; could give you more details info. Here is what I get.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1689161954876.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85732i592166C43E71965E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1689161954876.png" alt="Ksharp_0-1689161954876.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2023 11:38:59 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-07-12T11:38:59Z</dc:date>
    <item>
      <title>How decrease the MS Word header size to create a larger document body?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884282#M26328</link>
      <description>&lt;P&gt;I output a plot to RTF (MS Word) and the header and footer are 2.54 cm in height.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The plot is crowded, so I want to decrease the header and footer (to say 1.27 cm) so that the body can grow for the plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to look for a solution online and I have been thinking that it would be something to do with proc template define style.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The attachments show what I mean in MS Word and my setup in proc template define style class for the adjustment of the top, right, bottom &amp;amp; left margins (which doesn't work as I thought it would).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I be working with the 'systemheader' and 'systemfooter' rather? Or something else? Can the MS Word header and footer actually be modified in this manner?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am familiar with RTF codes \qc etc.;, so would that be an option?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also tried adding the 'bodytitle' to the ODS RTF statement to make the title appear in the document body (thinking it might majically make the header and footer disappear &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt; ) but it obviously has no effect on the size of the header/footer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice would be very much appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 06:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884282#M26328</guid>
      <dc:creator>M26</dc:creator>
      <dc:date>2023-07-11T06:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How decrease the MS Word header size to create a larger document body?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884283#M26329</link>
      <description>&lt;P&gt;How does one edit an own post? Never mind ... found it! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 06:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884283#M26329</guid>
      <dc:creator>M26</dc:creator>
      <dc:date>2023-07-11T06:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: How decrease the MS Word header size to create a larger document body?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884311#M26330</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nonumber nodate topmargin=0cm bottommargin=0cm;
ods rtf file='c:\temp\temp.rtf' headery=1 footery=1 ;
title 'XXXXXXXXX';

ods graphics/outputfmt=png noborder;
proc sgplot data=sashelp.heart(obs=100) ;
scatter x=weight y=height/group=sex;
run;

ods rtf  close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1689075684244.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85716i1F9EE3D8D798D31D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1689075684244.png" alt="Ksharp_0-1689075684244.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 11:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884311#M26330</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-11T11:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: How decrease the MS Word header size to create a larger document body?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884330#M26331</link>
      <description>&lt;P&gt;Thank you KSharp! I have seen many of your responses on the forum. It's a please to have address my query! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I can't quite understand the difference between using the 'options topmargin=1.27cm bottommargin=1.27cm' and using 'ods rtf ... headery=720 footery=720'. Is it just that the ods options allows you use inches or cms and RTS headery/footery you must use twips?&lt;BR /&gt;&lt;BR /&gt;Thanks again for the answer! I really appreciate it! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 12:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884330#M26331</guid>
      <dc:creator>M26</dc:creator>
      <dc:date>2023-07-11T12:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: How decrease the MS Word header size to create a larger document body?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884464#M26334</link>
      <description>&lt;P&gt;Maybe &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt; could give you more details info. Here is what I get.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1689161954876.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85732i592166C43E71965E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1689161954876.png" alt="Ksharp_0-1689161954876.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 11:38:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884464#M26334</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-12T11:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: How decrease the MS Word header size to create a larger document body?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884476#M26335</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's a response from 2011: &lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/What-does-HEADERY-do/td-p/13613" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/What-does-HEADERY-do/td-p/13613&lt;/A&gt; and here is the original TS note: &lt;A href="https://support.sas.com/kb/24/168.html" target="_blank"&gt;https://support.sas.com/kb/24/168.html&lt;/A&gt; . My understanding from the "old" days talking to the ODS developers when ODS RTF first came out was that some ODS measurements in RTF end up being converted into TWIPS when the RTF file is created because ODS generates RTF control strings and the RTF control strings expect the measurements to be specified in TWIPS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; HEADERY and FOOTERY were NOT in the original ODS RTF set of options, (I think they were introduced in SAS 9.1 approx) and since they are so specific to ODS RTF and how the document is rendered in Word, at some point the decision must have been made to specify them in TWIPS. The "why" is a mystery to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; What I observe is that if I do a simple ODS RTF with 1 inch margins and no specification for HEADERY and FOOTERY, all of the measurements in the generated RTF file seem to be in TWIPS, and it looks like HEADERY and FOOTERY are set to be 1440, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1689168549140.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85734i8D192DE5E6764DD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1689168549140.png" alt="Cynthia_sas_0-1689168549140.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When I specify values for HEADERY and FOOTERY, my values go directly into the RTF file, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1689168719391.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85735i3518AFD5D3DDC210/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1689168719391.png" alt="Cynthia_sas_1-1689168719391.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 13:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/884476#M26335</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-07-12T13:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: How decrease the MS Word header size to create a larger document body?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/885188#M26337</link>
      <description>&lt;P&gt;Wow! Another legend! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;Thank you&amp;nbsp; &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp; for the response, it's very much appreciated. And thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;for the referral! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIL:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;1440 twips per inch - I have been using centimeters rather than inches so I've been using the following to calculate the number of twips: 567 x cms = # of twips&lt;/LI&gt;&lt;LI&gt;"headery" &amp;amp; "footery" override "topmargin" and "bottommargin" options if set&lt;/LI&gt;&lt;LI&gt;"bodytitle" can be used if you'd prefer the header to be in the body, rather than the document header, of the document&lt;/LI&gt;&lt;LI&gt;Maybe changing the "papersize" option to A3 can give you more real estate to play with so that you don't have to adjust other things&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the link on the TS note page is dead i.e., &lt;A href="https://support.sas.com/rnd/base/ods/odsrtf/rtf901.html" target="_blank"&gt;https://support.sas.com/rnd/base/ods/odsrtf/rtf901.html&lt;/A&gt;. How does one get that fixed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your responses.&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 02:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/885188#M26337</guid>
      <dc:creator>M26</dc:creator>
      <dc:date>2023-07-18T02:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: How decrease the MS Word header size to create a larger document body?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/885322#M26338</link>
      <description>Hi: I believe that link was the original 9.1 link when the ODS RTF features were still experimantal -- like BODYTITLE, etc. All of those features are now production. So even though the link is broken, my guess is that the "experimental" page was removed when all the features were made production.&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 18 Jul 2023 17:27:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/885322#M26338</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-07-18T17:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: How decrease the MS Word header size to create a larger document body?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/885385#M26339</link>
      <description>Okay, thanks for the follow-up. Makes sense in that context.&lt;BR /&gt;&lt;BR /&gt;Thanks again for your help! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Wed, 19 Jul 2023 00:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-decrease-the-MS-Word-header-size-to-create-a-larger-document/m-p/885385#M26339</guid>
      <dc:creator>M26</dc:creator>
      <dc:date>2023-07-19T00:18:10Z</dc:date>
    </item>
  </channel>
</rss>

