<?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 to center the text with ods pdf file? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/333948#M17971</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi Roger,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really appreciate your help! but why it wont work after I put other styles into it, such as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ods text="^S={just=c &amp;nbsp; foreground=black &amp;nbsp;fontweight=bold width=1.9in&amp;nbsp;}My Text 3"; &amp;nbsp;it becomes left centered again especially I put the width=1.9in. Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2017 20:51:21 GMT</pubDate>
    <dc:creator>zhangda</dc:creator>
    <dc:date>2017-02-17T20:51:21Z</dc:date>
    <item>
      <title>How to center the text with ods pdf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/333917#M17968</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add a text into the output of sas pdf file with sas ods pdf file, but how to style the text, such as how to move it to the center top of the table instead of being left? The code below is not working. Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options obs=10;&lt;BR /&gt;proc template;&lt;BR /&gt;define style Styles.MyStyle;&lt;BR /&gt;parent=styles.htmlblue;&lt;BR /&gt;style usertext from usertext /vjust=c ;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods pdf file="C/Mtest29003.pdf" startpage=never notoc style=Styles.MyStyle ;&lt;/P&gt;&lt;P&gt;title "January Orders ";&lt;BR /&gt;footnote " For All Employees";&lt;BR /&gt;ods text="My Text 1";&lt;BR /&gt;ods text="My Text 2";&lt;BR /&gt;proc print data=sashelp.class;&lt;BR /&gt;run;&lt;BR /&gt;ods text="My Text 3";&lt;BR /&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;title;&lt;BR /&gt;footnote;&lt;BR /&gt;proc template;&lt;BR /&gt;delete Styles.MyStyle ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/333917#M17968</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2017-02-17T20:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to center the text with ods pdf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/333934#M17969</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;This seems to center everything, including the table.

ods escapechar='^';
options center;
ods pdf file="d:/pdf/Mtest29003.pdf" startpage=never notoc ;
title j=c "January Orders ";
footnote j=c " For All Employees";
ods text="^S={just=c}My Text 3";
ods text="^S={just=c}My Text 3";
proc print data=sashelp.class;
run;
ods text="^S={just=c}My Text 3";
ods pdf close;
title;
footnote;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/333934#M17969</guid>
      <dc:creator>rogerjdeangelis</dc:creator>
      <dc:date>2017-02-17T20:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to center the text with ods pdf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/333948#M17971</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Roger,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really appreciate your help! but why it wont work after I put other styles into it, such as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ods text="^S={just=c &amp;nbsp; foreground=black &amp;nbsp;fontweight=bold width=1.9in&amp;nbsp;}My Text 3"; &amp;nbsp;it becomes left centered again especially I put the width=1.9in. Thank you so much!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 20:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/333948#M17971</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2017-02-17T20:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to center the text with ods pdf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/333955#M17972</link>
      <description>&lt;P&gt;To center justify text change the CLASS usertext not the style; the only problem is that this will center justify on the page and not based on your table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define style Styles.MyStyle;
parent=styles.htmlblue;
class usertext from usertext /just=c ;
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One solution to have the text appear at the center top/bottom is to use PROC REPORT and include the text as part of your table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="C:\Mtest29003.pdf" startpage=never notoc style=Styles.MyStyle ;

title "January Orders ";
footnote " For All Employees";

proc report data=sashelp.class;
	column name sex age height weight;
	compute before _page_/style={just=center bordertopcolor=white borderrightcolor=white borderleftcolor=white};
		line "My Text 1";
		line "My Text 2";
	endcomp;
	compute after/style={just=center borderbottomcolor=white borderrightcolor=white borderleftcolor=white };
		line "My Text 3";
	endcomp;
run;

ods pdf close;
title;
footnote;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 21:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/333955#M17972</guid>
      <dc:creator>lopezr</dc:creator>
      <dc:date>2017-02-17T21:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to center the text with ods pdf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/334357#M17977</link>
      <description>&lt;P&gt;Hi Lopez,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to make "My Text 1" bigger? why it wont work when I put width=1.6in into the code? Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;pdf&lt;/SPAN&gt; &lt;SPAN class="token statement"&gt;file&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"C:\Mtest29003.pdf"&lt;/SPAN&gt; startpage&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;never notoc &lt;SPAN class="token keyword"&gt;style&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;Styles&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;MyStyle &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token statement"&gt;title&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"January Orders "&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;footnote&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;" For All Employees"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;report&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;sashelp&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token statement"&gt;class&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;column&lt;/SPAN&gt; name sex age height &lt;SPAN class="token statement"&gt;weight&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;compute&lt;/SPAN&gt; before _page_&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;style&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;just&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;center width=1.6in bordertopcolor&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;white borderrightcolor&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;white borderleftcolor&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;white&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
		line &lt;SPAN class="token string"&gt;"My Text 1"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
		line &lt;SPAN class="token string"&gt;"My Text 2"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;endcomp&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;compute&lt;/SPAN&gt; after&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;&lt;SPAN class="token keyword"&gt;style&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;just&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;center borderbottomcolor&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;white borderrightcolor&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;white borderleftcolor&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;white &lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
		line &lt;SPAN class="token string"&gt;"My Text 3"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
	&lt;SPAN class="token keyword"&gt;endcomp&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token statement"&gt;ods&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;pdf&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;close&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;title&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;footnote&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 15:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/334357#M17977</guid>
      <dc:creator>zhangda</dc:creator>
      <dc:date>2017-02-20T15:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to center the text with ods pdf file?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/334372#M17978</link>
      <description>&lt;P&gt;Instead of width use the FONT_SIZE option to change the size.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 16:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-center-the-text-with-ods-pdf-file/m-p/334372#M17978</guid>
      <dc:creator>lopezr</dc:creator>
      <dc:date>2017-02-20T16:06:41Z</dc:date>
    </item>
  </channel>
</rss>

