<?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 Page Number in RTF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Number-in-RTF/m-p/104491#M9822</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to put the page number(in page x of y format) into the body of the document instead of header or footer section. In other words, page numbering when bodytitle is in effect or tagsets.rtf is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;RB&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Aug 2013 23:24:51 GMT</pubDate>
    <dc:creator>sasjourney</dc:creator>
    <dc:date>2013-08-07T23:24:51Z</dc:date>
    <item>
      <title>Page Number in RTF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Number-in-RTF/m-p/104491#M9822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to put the page number(in page x of y format) into the body of the document instead of header or footer section. In other words, page numbering when bodytitle is in effect or tagsets.rtf is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;RB&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 23:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Number-in-RTF/m-p/104491#M9822</guid>
      <dc:creator>sasjourney</dc:creator>
      <dc:date>2013-08-07T23:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Page Number in RTF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Number-in-RTF/m-p/104492#M9823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Using the technique described in this note (&lt;A href="http://support.sas.com/kb/15/727.html" title="http://support.sas.com/kb/15/727.html"&gt;15727 - Writing PAGE X OF Y in RTF does not work with BODYTITLE&lt;/A&gt;) worked for me with TAGSETS.RTF. According to the note, there's no control over the placement if you use the style template method. For more help on this you might want to work with Tech Support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt; ods escapechar='^';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt; proc template;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; define style styles.test;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; parent=styles.rtf;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; style pageno from pageno /&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; font=fonts("strongfont")&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; posttext=" of ^{lastpage} ";&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt; run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title; footnote;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;options nodate number pageno=1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.rtf file='c:\temp\check_xofy.rtf' style=styles.test;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;proc print data=sashelp.shoes;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;title 'Using a Style Template';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;ods tagsets.rtf close;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11106i6325A17CBF862757/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="X_of_Y.png" title="X_of_Y.png" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 00:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Number-in-RTF/m-p/104492#M9823</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-08-08T00:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Page Number in RTF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Number-in-RTF/m-p/104493#M9824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response, the problem I had here is i'm trying to have the page numbers within the body of the document instead of header or footer sections. Also with the rtf codes when I combine two or more rtf documents the page numbers are getting updated automatically as the word processor interprets the document as one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like proc report and compute block is the best option to get the page number(which doesn't change when two rtfs are combined), but I guess we need to pre process the dataset to get the total number of pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way could be to convert the rtf to dataset using infile and manipulate the record where we need and convert the dataset back to rtf, but I don't think/know there is a way to convert a dataset directly to rtf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 02:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Number-in-RTF/m-p/104493#M9824</guid>
      <dc:creator>sasjourney</dc:creator>
      <dc:date>2013-08-08T02:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Page Number in RTF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Number-in-RTF/m-p/104494#M9825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; There were a lot of "pre-ODS" methods of generating page X of Y page numbering ... most of it involved either LISTING output or PostScript output. The issue with RTF is that the underlying architecture of the document involves being able to change the document. So if you use RTF field codes to insert page numbers and then you combine documents, the page numbers are not "frozen" numbers, they are field codes that are designed to be flexible. They are just not designed to behave the way you want. I'd recommend working with Tech Support on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 02:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Number-in-RTF/m-p/104494#M9825</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-08-08T02:45:07Z</dc:date>
    </item>
  </channel>
</rss>

