0

可能重复:
页脚中的 SSRS 页码

这是我的表达方式。

=Iif(Globals!PageNumber = "1", "i " ,nothing 
     & Iif(Globals!PageNumber = "2", "ii " ,nothing 
     & Iif(Globals!PageNumber = "3", "iii " ,nothing 
     & Iif(Globals!PageNumber = "4", "iv " ,nothing 
     & Iif(Globals!PageNumber = "5", "v " ,nothing 
     & Iif(Globals!PageNumber = "6", "vi " ,nothing 
     & Iif(Globals!PageNumber = "7", "vii " ,nothing 
     & Iif(Globals!PageNumber = "8", "ix " ,nothing 
     & Iif(Globals!PageNumber = "9", "ix " ,nothing 
     & Iif(Globals!PageNumber = "10", "x " ,Globals!PageNumber 
     OrElse Iif(Globals!PageNumber >=11, Globals!PageNumber,Globals!PageNumber)))))))))))

但是,在第 10 页之后,我想将所有页面显示为正常的全局页码,即 1、2、3、4、5、6、7、8、9、10。这可能吗?上面的表达式似乎是循环的。

4

1 回答 1

0

我认为switch 语句应该使这更容易:

switch(Globals!PageNumber = 1, "i",
       Globals!PageNumber = 2, "ii",
       ...
       Globals!PageNumber > 10, Globals!PageNumber)
于 2012-12-16T23:42:10.973 回答