Go Back   Rhinocerus > Newsgroup > Newsgroup comp.soft-sys.sas

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-08-2005, 06:17 PM
Ya Huang
Guest
 
Posts: n/a
Default Re: Proc report ODS RTF line statements make page wrap

Unfortunately, it is a known bug for v8.2. Try to run your code on v9.13 and
see what happens, I bet it's going to be fine.

As to the page number, that trick only works when you put it
in the footnote statement, by default, it goes to the hearder/footer
area in a word file, which can be intepreted by WORD and rendered as
'page xx of xx'. It won't work when used in line statement.

Oh, yes, RTF code is quite different within proc report for the reason
that rtf is a different format in so many ways compare to a plain text
file. To full grasp rtf, you have to basically learn a new programming
language, that's another 'unfortunately'.

Kind regards,

Ya

On Tue, 8 Feb 2005 10:59:08 -0800, David Ryerson <ryersond@YAHOO.COM> wrote:

>Hello all,
>
>I am using v8.2 in windows creating a report w/ ods
>RTF.
>
>I am having a problem with my line statements in the
>compute block making my columns wrap. In other words,
>if my line statement gets too long (only like 1/3 of
>the way across the page) the columns to the right
>start to wrap and are printed on the following page
>which is no good. Part of what makes this so
>frustrating is that I have been forced to include
>footnotes this way and want to have a line that goes
>all the way across the page using the line statement.
>As it is the line can only reach about 1/3 of the way
>before it starts to mess up the way the columns are
>printed;
>
>Here is my code:
>
>proc report... yada yada yada...
>
>break after page/suppress page;
> compute after page;
> line @1 "&line";
>/*the preceding statement creates a line using the
>following code in a data step above:
> line=repeat('_',90);
> call symput("line",line);*/
>
> line @1 '*S={font_size=9pt} footnote #1.';
> line @1 '*S={font_size=9pt} footnote #2.';
> endcomp;
>run;
>
>
>Another question:
>
>The SAS support center suggests using the following
>RTF code for pagination:
>
>ods listing close;
> ods rtf file="temp.rtf";
> proc print data=sashelp.class;
> footnote j=r "{\field{\*\fldinst {\b\i PAGE
>}}}\~
> {\b\i of}\~{\field{\*\fldinst{\b\i
>NUMPAGES }}}";
> run;
> proc print data=sashelp.class;
> run;
> ods rtf close;
>
>When I use this RTF code in a blank editor it works
>fine, but when I try to use it in a line statement
>within a compute block in my report it doesn't work.
>
>Would RTF code be different within proc report for
>some reason?
>
>Thanks in advance.
>Dave Ryerson
>
>
>
>
>
>__________________________________
>Do you Yahoo!?
>Meet the all-new My Yahoo! - Try it today!
>yahoo.com" target="_blank">http://my.yahoo.com

Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Proc Report and Title Line Symbolics Bob_Abelson@HGSI.COM Newsgroup comp.soft-sys.sas 0 05-28-2008 06:26 PM
Re: PROC FREQ--DATA STEP--MODELING QUESTION nospam@HOWLES.COM (Howard Schreier Newsgroup comp.soft-sys.sas 0 06-07-2007 02:04 AM
Re: Solution: PROC REPORT and LINE statement Tom Hide Newsgroup comp.soft-sys.sas 0 08-01-2005 07:52 AM
Re: Questions on Proc Print/Proc Report Braten, Michael Exchange Newsgroup comp.soft-sys.sas 0 11-05-2004 01:49 PM
Re: Right justifying computed character output in PROC REPORT Scott Newsgroup comp.soft-sys.sas 1 10-28-2004 11:17 AM



All times are GMT. The time now is 06:33 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.