<?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: To create rtf file reading 2 PNG files with different page number and titles in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/903179#M26430</link>
    <description>Thank you so much for your valuable inputs. I have tried by removing it and by changing STARTPAGE options but no luck.</description>
    <pubDate>Wed, 15 Nov 2023 12:41:25 GMT</pubDate>
    <dc:creator>Chetan302</dc:creator>
    <dc:date>2023-11-15T12:41:25Z</dc:date>
    <item>
      <title>To create rtf file reading 2 PNG files with different page number and titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/902773#M26426</link>
      <description>&lt;P&gt;I have created rtf file reading 2 PNG files displayed separately in two pages using ods text statement but with same title and page number.&lt;BR /&gt;Need to have different title and page number for both rtf pages.&amp;nbsp;&lt;BR /&gt;code I am using looks like:-&lt;BR /&gt;%let _std_ods_type = rtf;&lt;/P&gt;&lt;P&gt;title 1 'page (1 of 2)';&lt;/P&gt;&lt;P&gt;title3 "Treatment 1";&lt;/P&gt;&lt;P&gt;ods rtf file = 'path/trackerfile_name.outpt_reference' style = custom startpage = never;&lt;/P&gt;&lt;P&gt;ods text = 'path/file_name1.png' ;&lt;/P&gt;&lt;P&gt;title 1 'page (2 of 2)';&lt;/P&gt;&lt;P&gt;title3 "Treatment 2";&lt;/P&gt;&lt;P&gt;ods text = 'path/file_name2.png' ;&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;BR /&gt;&lt;BR /&gt;This code is giving titles defined first in both pages.&lt;/P&gt;&lt;P&gt;If I pass the code in simple loop then getting titles defined at last in both pages.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 11:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/902773#M26426</guid>
      <dc:creator>Chetan302</dc:creator>
      <dc:date>2023-11-13T11:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: To create rtf file reading 2 PNG files with different page number and titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/902857#M26427</link>
      <description>&lt;P&gt;While you see the images on separate pages, the ODS RTF TEXT= statement will not force a page break / step boundary, which is what is required for the title to change. I suggest using PROC ODSTEXT instead. I have success with the following code in SAS 9.4m8. Please let me know your results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nodate nonumber;&lt;BR /&gt;ODS LISTING GPATH = "/tmp";
ods graphics on / imagename="first" imagefmt=png border=off;

proc sgplot data=sashelp.class;
scatter x=height y=weight;
ellipse x=height y=weight;
run;
ods graphics on / imagename="second" imagefmt=png border=off;
proc sgplot data=sashelp.cars;
hbox weight / category=origin;
run;
ods listing close;

ods escapechar="^";
%let _std_ods_type = rtf;

title1 'Page ^{thispage} of ^{lastpage}';
title3 "Treatment 1";
ods rtf file = '/tmp/file.rtf' ;

proc odstext;
P '^S={outputwidth=100% preimage="/tmp/first.png"}';
run;


title1 'Page ^{thispage} of ^{lastpage}';
title3 "Treatment 2";

proc odstext;
P '^S={outputwidth=100% preimage="/tmp/second.png"}';
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here's a snippet of my titles from each page:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bari_sas_0-1699908484558.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89704i295EEA5AF37CBA89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bari_sas_0-1699908484558.png" alt="Bari_sas_0-1699908484558.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 20:48:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/902857#M26427</guid>
      <dc:creator>Bari_sas</dc:creator>
      <dc:date>2023-11-13T20:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: To create rtf file reading 2 PNG files with different page number and titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/902861#M26428</link>
      <description>&lt;P&gt;What happens if you remove the STARTPAGE=NEVER from the ODS Rtf statement?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 21:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/902861#M26428</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-11-13T21:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: To create rtf file reading 2 PNG files with different page number and titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/903178#M26429</link>
      <description>Thank you so much for your prompt reply. This work around works for me</description>
      <pubDate>Wed, 15 Nov 2023 12:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/903178#M26429</guid>
      <dc:creator>Chetan302</dc:creator>
      <dc:date>2023-11-15T12:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: To create rtf file reading 2 PNG files with different page number and titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/903179#M26430</link>
      <description>Thank you so much for your valuable inputs. I have tried by removing it and by changing STARTPAGE options but no luck.</description>
      <pubDate>Wed, 15 Nov 2023 12:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/903179#M26430</guid>
      <dc:creator>Chetan302</dc:creator>
      <dc:date>2023-11-15T12:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: To create rtf file reading 2 PNG files with different page number and titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/903410#M26431</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nodate nonumber;
ods escapechar="^";
title1 'Page ^{thispage} of ^{lastpage}';
title3 "Treatment 1";
ods rtf file = 'c:\temp\a\file.rtf'  nogtitle dpi=300 ;

ods graphics on / border=off outputfmt=png;
proc sgplot data=sashelp.class;
scatter x=height y=weight;
ellipse x=height y=weight;
run;

/*title1 'Page ^{thispage} of ^{lastpage}';*/
title3 "Treatment 2";
ods graphics on / border=off  outputfmt=png;
proc sgplot data=sashelp.cars;
hbox weight / category=origin;
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-1700112572139.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89896i5C70598AFE85E4CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1700112572139.png" alt="Ksharp_0-1700112572139.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 05:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/To-create-rtf-file-reading-2-PNG-files-with-different-page/m-p/903410#M26431</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-11-16T05:29:39Z</dc:date>
    </item>
  </channel>
</rss>

