排除最后一页的标题

时间:2017-08-28 18:50:17

标签: crystal-reports

Section Expert上,我该如何排除最后一页上显示的标题?

我相信我必须去Section Expert>在Common>下更改Suppress (No Drill-Down)

中公式中的内容

我只是不知道要包含的公式

1 个答案:

答案 0 :(得分:3)

刚刚找到它。对于那些看起来:

declare @table table ( Position varchar(64) --UniqueIdentifier ,PositionSlot int ,PositionSlotDescrpition varchar(64) ,PD varchar(16) ,P5 varchar(16) ,P6 varchar(16) ,P7 varchar(16) ,P8 varchar(16) ,P9 varchar(16) ,FT varchar(16)) insert into @table values ('1-400400-0680',NULL,NULL,7,1,2,NULL,1,18,NULL), ('1-400400-0041',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1), ('1-400400-0660',NULL,NULL,NULL,NULL,NULL,NULL,1,6,NULL) declare @expectedResults table( Position varchar(64) ,PositionSlot int ,PositionSlotDescrpition varchar(64)) insert into @expectedResults values ('1-400400-0041',1,'FT'), ('1-400400-0660',1,'P8'), ('1-400400-0660',2,'P9'), ('1-400400-0660',3,'P9'), ('1-400400-0660',4,'P9'), ('1-400400-0660',5,'P9'), ('1-400400-0660',6,'P9'), ('1-400400-0660',7,'P9'), ('1-400400-0680',1,'P5'), ('1-400400-0680',2,'P6'), ('1-400400-0680',3,'P6'), ('1-400400-0680',4,'P8'), ('1-400400-0680',5,'P9'), ('1-400400-0680',6,'P9'), ('1-400400-0680',7,'P9'), ('1-400400-0680',8,'P9'), ('1-400400-0680',9,'P9'), ('1-400400-0680',10,'P9'), ('1-400400-0680',11,'P9'), ('1-400400-0680',12,'P9'), ('1-400400-0680',13,'P9'), ('1-400400-0680',14,'P9'), ('1-400400-0680',15,'P9'), ('1-400400-0680',16,'P9'), ('1-400400-0680',17,'P9'), ('1-400400-0680',18,'P9'), ('1-400400-0680',19,'P9'), ('1-400400-0680',20,'P9'), ('1-400400-0680',21,'P9'), ('1-400400-0680',22,'P9'), ('1-400400-0680',23,'PD'), ('1-400400-0680',24,'PD'), ('1-400400-0680',25,'PD'), ('1-400400-0680',26,'PD'), ('1-400400-0680',27,'PD'), ('1-400400-0680',28,'PD'), ('1-400400-0680',29,'PD') 标签上,转到要隐藏的部分,然后点击Design

然后转到Section Expert并在公式编辑器中输入以下内容:

Suppress (No Drill-Down)

或者,如果您想隐藏第一页上的内容,可以使用:

(onlastrecord)