<?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 Break for Lengthy Custom ToC in ODS RTF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Break-for-Lengthy-Custom-ToC-in-ODS-RTF/m-p/678486#M24366</link>
    <description>&lt;P&gt;I am creating a custom ToC in an ODS RTF output using tags (similar to &lt;A href="https://www.lexjansen.com/nesug/nesug06/io/io13.pdf" target="_self"&gt;this paper&lt;/A&gt;). Unfortunately, my ToC is rather lengthy and would need to cover multiple pages. However, when I press Ctrl+A, F9 in Word, the ToC gets smashed into one page and overflows. I cannot figure out how to get it to insert a page break. Please advise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example of how ToC is being built:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* page 3 */
proc odstext pagebreak=yes;
	h "{\scaps Contents}" / style={fontfamily='Arial' fontweight=bold font_size=12pt just=c};
run;

ods rtf text="{\field{\*\fldinst {\\TOC \\f \\h} } }"; run; 

/* Section I */
proc odstext pagebreak=yes;
	h "^20n {\tc \tcl1{\scaps I. Introduction &amp;amp; Methodology}}" / style={fontfamily='Arial' fontweight=bold font_size=12pt just=c};
run;

/* Section I Content */
proc odstext pagebreak=yes;
	h "{\tc \tcl2{\scaps 1.1 Project Overview}}" / style={fontfamily='Arial' fontweight=bold font_size=10pt just=l};
	p ;
	p "text";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 21 Aug 2020 15:30:24 GMT</pubDate>
    <dc:creator>tburus</dc:creator>
    <dc:date>2020-08-21T15:30:24Z</dc:date>
    <item>
      <title>Page Break for Lengthy Custom ToC in ODS RTF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Break-for-Lengthy-Custom-ToC-in-ODS-RTF/m-p/678486#M24366</link>
      <description>&lt;P&gt;I am creating a custom ToC in an ODS RTF output using tags (similar to &lt;A href="https://www.lexjansen.com/nesug/nesug06/io/io13.pdf" target="_self"&gt;this paper&lt;/A&gt;). Unfortunately, my ToC is rather lengthy and would need to cover multiple pages. However, when I press Ctrl+A, F9 in Word, the ToC gets smashed into one page and overflows. I cannot figure out how to get it to insert a page break. Please advise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example of how ToC is being built:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* page 3 */
proc odstext pagebreak=yes;
	h "{\scaps Contents}" / style={fontfamily='Arial' fontweight=bold font_size=12pt just=c};
run;

ods rtf text="{\field{\*\fldinst {\\TOC \\f \\h} } }"; run; 

/* Section I */
proc odstext pagebreak=yes;
	h "^20n {\tc \tcl1{\scaps I. Introduction &amp;amp; Methodology}}" / style={fontfamily='Arial' fontweight=bold font_size=12pt just=c};
run;

/* Section I Content */
proc odstext pagebreak=yes;
	h "{\tc \tcl2{\scaps 1.1 Project Overview}}" / style={fontfamily='Arial' fontweight=bold font_size=10pt just=l};
	p ;
	p "text";
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Aug 2020 15:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Break-for-Lengthy-Custom-ToC-in-ODS-RTF/m-p/678486#M24366</guid>
      <dc:creator>tburus</dc:creator>
      <dc:date>2020-08-21T15:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Page Break for Lengthy Custom ToC in ODS RTF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Break-for-Lengthy-Custom-ToC-in-ODS-RTF/m-p/678527#M24367</link>
      <description>Hi:&lt;BR /&gt;  Well, what is the RTF method for doing a page break? Since you're using RTF control strings for the TOC entries, my guess is that you'll need RTF control strings for the page break you want to insert. Once you know what that is, you can use it in your code just as you are writing the other RTF control strings. Or else, you might want to work with Tech Support because they can look at ALL your code with ALL your data that generates the long TOC and they can help you if there is a SAS solution.&lt;BR /&gt;Cynthia</description>
      <pubDate>Fri, 21 Aug 2020 17:54:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-Break-for-Lengthy-Custom-ToC-in-ODS-RTF/m-p/678527#M24367</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-08-21T17:54:42Z</dc:date>
    </item>
  </channel>
</rss>

