ReportStudio入门教程(七十一) - 显示时间进度(文字版)
来源:互联网 发布:淘宝零成本自动赚钱txt 编辑:程序博客网 时间:2024/05/14 10:00
这回我们介绍一个技巧:现在需要在报表上显示一个时间进度,这里先介绍一个文字版的,比如今天是28号,要显示一个28/31的完成比。
效果是这样的:
其实是很简单的,就是用了几个函数嵌套一下,当让,用JS也是可以的。
分享下表达式:
string2int32(substring ( date2string (Today()) , 9 , 2 ))/string2int32(substring ( timestamp2string (_last_of_month ( date2timestamp (Today()) ) ), 9 , 2 ))
我们可以拖一个文本项目到报表上,然后修改源类型为报表表达式
在设置个数据格式为百分比
好了,就这样就可以了。
0 0
- ReportStudio入门教程(七十一) - 显示时间进度(文字版)
- ReportStudio入门教程(七十二) - 显示时间进度(进度条版)
- ReportStudio入门教程(十五) - 列表显示行号
- ReportStudio入门教程(六十三) - 动态显示图片
- ReportStudio入门教程(十四) - 隐藏后的单元格显示
- ReportStudio入门教程(十七) - 将汇总显示在第1行
- ReportStudio入门教程(三十二) - 在交叉表中显示指定字符
- ReportStudio入门教程(三十四) - 固定显示4个季度
- ReportStudio入门教程(七十) - 每页都显示汇总值
- ReportStudio入门教程(八十) - 行政组织显示负责人信息
- ReportStudio入门教程(九十) - 在交叉表表头显示占比
- ReportStudio入门教程(九十一) - 在列表表头显示占比
- ReportStudio入门教程(零) - 序
- ReportStudio入门教程(四) - 过滤器
- ReportStudio入门教程(八) - 数据格式
- ReportStudio入门教程(十六) - 解锁
- ReportStudio入门教程(九十四) - 后记
- ReportStudio入门教程(八十八) - 设置日期控件(DatePrompt)的开始时间和结束时间
- sql日期格式化
- 2.x游戏暂停层 GamePauseLayer 的实现
- POJ-2104-K-th Number(函数式线段树)
- postgresql最强整理资料
- HTTPS 学习总结
- ReportStudio入门教程(七十一) - 显示时间进度(文字版)
- light oj 1068(数位dp)
- 序列化 Serializable
- 【bug记录】Eclipse中修改文件保存后,总是提示Could not clean server of obsolete files
- 十大电子论坛推荐
- OCP 1Z0 053 221
- UVa 110 Meta-Loopless Sorts 解题报告(暴力)
- android系统在虚拟机中锁屏后无响应的解决方案
- UML那些事儿:六类UML图