ReportStudio入门教程(七十一) - 显示时间进度(文字版)
2014-07-28 11:19
246 查看
这回我们介绍一个技巧:现在需要在报表上显示一个时间进度,这里先介绍一个文字版的,比如今天是28号,要显示一个28/31的完成比。
效果是这样的:
![](https://oscdn.geek-share.com/Uploads/Images/Content/201911/08/092ecbcd8e127d1e98506d0feb16728c)
其实是很简单的,就是用了几个函数嵌套一下,当让,用JS也是可以的。
分享下表达式:
我们可以拖一个文本项目到报表上,然后修改源类型为报表表达式
![](https://oscdn.geek-share.com/Uploads/Images/Content/201911/08/814326d65928d8a15c3633127e7587d6)
在设置个数据格式为百分比
![](https://oscdn.geek-share.com/Uploads/Images/Content/201911/08/cc8a036b1d456539fd797f2d7377995a)
好了,就这样就可以了。
效果是这样的:
其实是很简单的,就是用了几个函数嵌套一下,当让,用JS也是可以的。
分享下表达式:
string2int32( substring ( date2string (Today()) , 9 , 2 ) ) / string2int32( substring ( timestamp2string ( _last_of_month ( date2timestamp (Today()) ) ) , 9 , 2 ) )
我们可以拖一个文本项目到报表上,然后修改源类型为报表表达式
在设置个数据格式为百分比
好了,就这样就可以了。
相关文章推荐
- ReportStudio入门教程(九十一) - 在列表表头显示占比
- ReportStudio入门教程(七十二) - 显示时间进度(进度条版)
- ReportStudio入门教程(三十四) - 固定显示4个季度
- ReportStudio入门教程(七十六) - JS拼接报表- 第2页显示表头
- ReportStudio入门教程(十七) - 将汇总显示在第1行
- ReportStudio入门教程(二十六) - 列表的悬浮提示信息-显示自定义信息
- ReportStudio入门教程(九十) - 在交叉表表头显示占比
- ReportStudio入门教程(七十八) - JS-禁止右键单击功能
- ReportStudio入门教程(十九) - 值提示
- ReportStudio入门教程(五十一) - 追溯定义(下)
- ReportStudio入门教程(七) - 计算项
- ReportStudio入门教程(九十二) - 追溯行为配置不当引发的错误
- ReportStudio入门教程(六十七) - 使用列表还是交叉表
- ReportStudio入门教程(七十七) - 自定义排名规则
- ReportStudio入门教程(五十七) - JS拼接报表
- ReportStudio入门教程(五) - 数据汇总
- ReportStudio入门教程(八十三) - 横向合并交叉表
- Grid++Report 入手教程:VB 通过Grid Report 显示时间
- ReportStudio入门教程(一) - 基本的列表
- ReportStudio入门教程(三) - 简述分页