楼主: dxystata
1160 5

为什么没有生产目录呢? [推广有奖]

版主

已卖:302份资源

大师

37%

还不是VIP/贵宾

-

TA的文库  其他...

Software

中英文Ebook

R学习

威望
2
论坛币
183395 个
通用积分
15333.1475
学术水平
208 点
热心指数
271 点
信用等级
174 点
经验
298627 点
帖子
5586
精华
1
在线时间
13632 小时
注册时间
2006-6-21
最后登录
2025-12-2

初级学术勋章 初级热心勋章 中级热心勋章 初级信用勋章

楼主
dxystata 发表于 2013-11-22 12:01:11 |AI写论文
100论坛币
  1. proc template ;
  2. define style RTFCW;
  3. parent=styles.rtf;
  4. style data from data /protectspecialchars=off;
  5. style rowheader from rowheader / protectspecialchars=off;
  6. style systemtitle from systemtitle /protectspecialchars=off;
  7. style systemfooter from systemfooter /protectspecialchars=off;
  8. style usertext from usertext /protectspecialchars=off
  9. OutputWidth = 100%;
  10. end;
  11. run;
  12. ODS RTF FILE='F:\NESUG_TOCv9.RTF' STYLE=RTFCW startpage=no bodytitle keepn NOTOC_DATA;
  13. ods noproctitle;

  14. title; RUN;
  15. ODS RTF TEXT="{\pard\b\fs28\qc {Table of Contents} \par}"; run;

  16. ODS RTF TEXT="{\field{\*\fldinst {\\TOC \\f \\h} } }"; RUN;

  17. ODS RTF TEXT="{\tc {\b\fs28\ql {Section 1: Personal Information} \par}}"; RUN;

  18. proc means data = sashelp.class;
  19. var age;
  20. run;

  21. ODS RTF TEXT="{\tc {\b\fs28\ql {Section 2: Children in the Home} \par}}"; RUN;

  22. proc means data = sashelp.class;
  23. var age;
  24. run;

  25. ods rtf close;
复制代码
为什么不出现目录呢?谢谢!

关键词:noproctitle information Informatio formation informat parent style title

本帖被以下文库推荐

沙发
牵你↗左手 发表于 2013-11-22 13:02:32
ods rtf FILE='F:\NESUG_TOCv9.RTF' STYLE=RTFCW startpage=no bodytitle keepn NOTOC_DATA contents=yes;

藤椅
dxystata 发表于 2013-11-22 20:40:43
牵你↗左手 发表于 2013-11-22 13:02
ods rtf FILE='F:\NESUG_TOCv9.RTF' STYLE=RTFCW startpage=no bodytitle keepn NOTOC_DATA contents=yes;
...
2013-11-22_203913.png
出来的结果很奇怪!

板凳
邓贵大 发表于 2013-11-22 23:03:50
"When the RTF file has been created by SAS and opened in Word, you will not immediately see the TOC. To
render the TOC press <Ctrl><A> to select all and then press F9 to create the TOC."
--- from http://www2.sas.com/proceedings/forum2008/238-2008.pdf page 4
Be still, my soul: the hour is hastening on
When we shall be forever with the Lord.
When disappointment, grief and fear are gone,
Sorrow forgot, love's purest joys restored.

报纸
dxystata 发表于 2013-11-23 01:14:40
就是用了ctrl+a+f9后还是有问题

地板
邓贵大 发表于 2013-11-23 02:07:30
it appears normal on my machine (windows 7 + office 2010 32-bit)
i used your original code.
So I cannot be of much help.
Be still, my soul: the hour is hastening on
When we shall be forever with the Lord.
When disappointment, grief and fear are gone,
Sorrow forgot, love's purest joys restored.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-21 13:58