楼主: fxf258
5326 2

[问答] 请教如何控制proc report的输出页 [推广有奖]

  • 1关注
  • 3粉丝

已卖:2份资源

教授

92%

还不是VIP/贵宾

-

威望
0
论坛币
3486 个
通用积分
31.7841
学术水平
-3 点
热心指数
2 点
信用等级
-3 点
经验
108556 点
帖子
499
精华
0
在线时间
2899 小时
注册时间
2006-11-4
最后登录
2025-12-3

楼主
fxf258 发表于 2010-12-2 11:14:15 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
请教在使用proc report过程输出表格到word文档时,如何控制输出的Word文档的页面设置,如页边距的上、下、左、右的值,横排、竖排以及输出的表格的宽度。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:proc report Report repor Port repo 请教 Report proc 输出

沙发
ttklkl 发表于 2010-12-2 17:17:59
我给你发一个模板吧:
proc template;
define style Styles.Custom;
parent = Styles.RTF;
replace fonts /
'TitleFont' = ("Times Roman",13pt,Bold) /* Titles from TITLE statements */
'TitleFont2' = ("Times Roman",12pt,Bold Italic) /* Procedure titles ("The _____
Procedure")*/
'StrongFont' = ("Times Roman",10pt,Bold)
'EmphasisFont' = ("Times Roman",10pt,Italic)
'headingEmphasisFont' = ("Times Roman",11pt,Bold Italic)
'headingFont' = ("Times Roman",10pt) /* Table column and row headings */
'docFont' = ("Times Roman",10pt) /* Data in table cells */
'footFont' = ("Times Roman",10pt) /* Footnotes from FOOTNOTE statements */
'FixedEmphasisFont' = ("Courier",9pt,Italic)
'FixedStrongFont' = ("Courier",9pt,Bold)
'FixedHeadingFont' = ("Courier",9pt,Bold)
'BatchFixedFont' = ("Courier",6.7pt)
'FixedFont' = ("Courier",9pt);
replace color_list /
'link' = blue /* links */
'bgH' = white /* row and column header background */
'fg' = black /* text color */
'bg' = white; /* page background color */;
replace Body from Document /
bottommargin = 0.25in
topmargin = 0.25in
rightmargin = 0.25in
leftmargin = 0.25in;
replace Table from Output /
frame = hsides /* outside borders: void, box, above/below, vsides/hsides, lhs/rhs */
rules = groups /* internal borders: none, all, cols, rows, groups */
cellpadding = 5pt /* the space between table cell contents and the cell border */
cellspacing = 0pt /* the space between table cells, allows background to show */
borderwidth = 0.5pt /* the width of the borders and rules */;
* Leave code below this line alone ;
style SystemFooter from SystemFooter /
font = fonts("footFont");
end;
run;

但是不要忘记用ODS输出时,加上style=Custom。
已有 1 人评分论坛币 学术水平 收起 理由
论坛数据分析 + 100 + 1 精彩帖子

总评分: 论坛币 + 100  学术水平 + 1   查看全部评分

Stay Hungry. Stay Foolish.

藤椅
fxf258 发表于 2010-12-3 14:11:03
非常感谢ttklkl,很详细!

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

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