Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pagebreaks in ODS RTF

Status
Not open for further replies.

hemanthpadmakar

Programmer
Mar 29, 2006
5
GB
Hello All,
I have a problem with page breaks when using ODS RTF. My aim is to put as many tables(Each table corresponds to each proc report in my code) as possible into a single page, and then go to the next page.
Here are some of the approaches I used, but failed to implement.
1. I used startpage=no option and changed to startpage=now, whenever is needed. This concept worked very fine except that, it takes a single title for the two tables(two proc reports). Meaning, it takes a single title for each page. I want two different titles for the two tables.
2. I tried to use options formdlim=' '. But this seems to apply only for the output window, but not for the ODS RTF. I can see the differences in the output window, but not in RTF file.

Can anyone suggest me a solution for this.

Thanks in Advance,
N. Hemanth Padmakar.
 
hi there hemanth

i too have the same problem

i am trying to use the start page option

and headers are gone...

can you please let me know the soluution if you have you any...!!

i will be grateful

regards
Narra
 
Hi Narra,
In fact we don't have any direct solution for this. So, I've compromised with few things. However, I think this may help you. I've used startpage=off, and then used startpage=on wherever I need a page break. But, as you know, you'll have to lose the titles for individual tables. So, I used ODS RTF TEXT='title'; whenever you need a title(manually). But, if you feel, you can't put the tables and titles manually(becoz the tables may vary in size), you can use an option KEEPN in ods and turn startpage=no. Please let me know, if you have any questions. Hope this had helped you.

Good Luck,
Regards,
Hemanth N Padmakar.
 
hi there Hemanth


thanks for the reply

i have adopted one procedure for this problem

1.i have used startpage=No in the options
2.created table headings using compute before in all
the proc report statements which almost look like the headers.

one draw back is that i could not print the page numbers

regards
narra

can you suggest me a solution if you Know
 
Hi,

I am trying to insert a text into the table of a word document using SAS and DDE.say, one of the cell in the table has text "version:". I have a bookmark right after the : and truing to insert some text here. But, it is not working. It is working if I am trying to insert text at bookmarks outside the table.
Does any one know the easiest method to insert text into cells of a table.Here is the code that I am using.


options noxwait noxsync;
x 'c:\msoffice\winword\winword.exe';

filename ws dde 'winword|system';
filename name dde 'winword|C:\Documents and Settings\......\t.doc!name';
filename location dde 'winword|C:\Documents and Settings\......\t.doc!address';
filename prod dde 'winword|C:\Documents and Settings\......\t.doc!tab';

data _null_;
x=sleep(10);
file ws;
put '[FileOpen .Name = "C:\Documents and Settings\.....\t.doc"]';
stop;
run;

data _null_;
/*file name notab;
put 'Alice';
file location notab;
put 'Wonderland';*/
file prod notab;
put "ente";
stop;
run;

data _null_;
file ws;
put '[FilePrint]';
put '[FileSave]';
put '[FileExit 2]';
stop;
run;

Thanks,
Eguva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top