壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4071|回复: 1

report中如何让某个占位列的值为当前页码

[复制链接]
发表于 2006/7/29 08:55:05 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
Suppose that you want to have the page number at the top of each page of your report. Furthermore, you want the page number to be of the form "Page n of m pages":

1 Create a field named F_PAGE and set the Source property to &Physical Page Number.

2 In the Field Property Palette, set the Page Numbering property by filling out the Page Numbering dialog box as follows:

n Check Main Section and uncheck Header Section and Trailer Section because you only want to number the Main Section pages.

n Type 1 in the Start At setting.

n Type 1 in the Increment By setting.

n Type &Report under Reset At because you don't want the page numbers to reset to zero until the report is done.

3 Create a field called F_TOTPGE and set the Source property to &Total Number of Physical Pages.

4 Do either of the following:

n Hide these fields (i.e., set the Visible property to No) and reference them within boilERPlate text:

Page &F_PAGE of &F_TOTPGE

n Alternatively, position F_PAGE and F_TOTPGE beside each other. Insert boilerplate to the left of F_PAGE that contains the text "Page". Insert boilerplate between F_PAGE and F_TOTPGE that contains the text "of".


 楼主| 发表于 2006/7/29 08:55:42 | 显示全部楼层
I know this method how to create the style: Current/Total Pages, but I want to generate a CP to store the page number, for I want to do some other logic

SRW.Get_Page_Num(Page_Num Out Number)
试试
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/30 04:43 , Processed in 0.014907 second(s), 14 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表