Date: Mon, 3 Feb 2003 14:14:11 +0100
Reply-To: WIELKI Andre <wielki@INED.FR>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: WIELKI Andre <wielki@INED.FR>
Subject: Re: ods/rtf, escapechar, indentation (thanks!!!!!!)
In-Reply-To: <33257C92AB7BD511A0A500508B6FE544018305C5@MCDC-ATL-43>
Content-Type: text/plain; charset="us-ascii"; format=flowed
Kevin,
Yes it is documented in SN-008044
It is only usefull to put some text between procedure in the rtf destination
but i prefer the proc report solution
HTH
Andre
ods rtf file="t.rtf" startpage=no;
proc print data=sashelp.class (obs=1);
run;
ods rtf
text="{\trowd\trqc\cellx11520\intbl\qc{Text info\cell}{\row}\pard}";
proc print data=sashelp.class (obs=1) ;
run;
ods rtf close;
At 14:23 31/01/2003 -0500, Delaney, Kevin P. wrote:
>Subtle differences...
>
>I used your original "\" as an escape character, rather than Karl's "^" (
>guess that show's that the "\" will work if it is positioned correctly...)
>and Karl added the /RTF which tells SAS to only insert the RAW text in the
>RTF destination. This would be applicable to a situation where you are
>creating HTML and RTF at the same time...
>
>I also added the RTF code for a double underline (\uldb NOT \dul as listed
>on the Tech support website) just to play around with an extra bit of
>formatting...
>
>Incidentally if you want to insert Really raw text you can play with
>
>ODS RTF text= {insert raw RTF commands in brackets, without \R};
>
>Which I don't think is documented, but is working most of the time as I play
>around with it!!
>
>Kevin Delaney
>KDelaney@cdc.gov
>p:404-639-6142
>f: 404-639-8640
>
>
>
>
>-----Original Message-----
>From: Huang, Ya [mailto:yhuang@amylin.com]
>Sent: Friday, January 31, 2003 11:39 AM
>To: Delaney, Kevin P.; Karl K.
>Cc: SAS-L@LISTSERV.UGA.EDU
>Subject: RE: ods/rtf, escapechar, indentation (thanks!!!!!!)
>
>
>Kevin and Karl,
>
>Thank you so very much!
>
>This '\R" " (rtf raw text) is exactly what I'm
>looking for. I tried both of your code, and they all
>worked. I noticed a little difference in the sytax:
>
> a='\R"\li360\uldb " blabla...'; (Kevin's code) a='^R/RTF"\li360"
>indented'; output; (Karl's code)
>
>Actually I also tried to use raw text embedding,
>but as you can see, the subtle syntax difference confused
>me and I couldn't figure out either of them :-)
>
>Anyway, after solving this problem, I guess I'll
>be on my way to solve another classic SAS-L problem,
>ie. hanging indent with proc report. I believe this
>question was asked again just few days ago.
>
>Will post my experiment later.
>
>Best regards,
>
>Ya
>
>-----Original Message-----
>From: Delaney, Kevin P. [mailto:khd8@cdc.gov]
>Sent: Friday, January 31, 2003 7:03 AM
>To: Huang, Ya
>Subject: RE: ods/rtf, escapechar, indentation
>
>
>Ya,
>
>Try :
>
>data;
> a='\R"\li360\uldb " blabla...';
>run;
>ods escapechar='\';
>ods rtf file="c:\temp\junk.rtf" style=minimal;
>
>Title 'Try \R"\line" This';
>proc report nowd;
>run;
>
>ods rtf close;
>
>
>It seems you need the "R" to get the escapechar to work in RTF!!
>
>Now I guess I should go back and try to find your first ods/RTF question...
>:-)
>-----Original Message-----
>From: Huang, Ya [mailto:yhuang@AMYLIN.COM]
>Sent: Thursday, January 30, 2003 7:51 PM
>Subject: ods/rtf, escapechar, indentation
>
>
>Hi there,
>
>This is my second question for ods/rtf today, hasn't
>got any response for my first one yet :-(
>
>I try to indent the text by adding inline rtf code:
>
>data;
> a='\li360 blabla...';
>run;
>
>ods rtf file="c:\temp\junk.rtf" style=minimal;
>ods escapechar='\';
>
>proc report nowd;
>run;
>
>ods rtf close;
>
>Unfortunately, it dose not work. The junk.rtf read as
>following (use Ultraedit):
>
>...
>\pard\plain\intbl\sb67\sa67\ql\f1\fs19\cf1{ li360 blabla...\cell} {\row}
>\pard}
>
>If I replace the " " with "\", and save it, the indentation take effect.
>
>Any comments?
>
>Thanks
>
>Ya Huang
___________
WIELKI Andre
INED - Service Informatique
133 Bd Davout,
75 980 Paris Cedex 20
FRANCE
Tel: 01 56 06 21 54
|