报表样式教程之FineReport:[2]进度条展示
1、设计模板模板设计,如下:
![报表样式教程之FineReport:[2]进度条展示](https://exp-picture.cdn.bcebos.com/4759c1dae43b3b86836a6fe4185653bbf92075e2.jpg)
2、在C7单元格中输入以下公式:"<table width="挢旗扦渌; + ROUND(B7 * 200 / sum(B7[!0;!0]), 2) + "% border=0 cellspacing=0 cellpadding=0> <tr> <td bgcolor=#0000FF><div color=#ffffff align=right>" + B7 + "</div></td> </tr> </table>"
3、单元格属性设置设置单元格样式为“单行显示(调整字体)”,右击单元格>单元格属性>其他属性,显示内容设置用HTML显示内容,这样便可使用html片段来显示出进度条。
![报表样式教程之FineReport:[2]进度条展示](https://exp-picture.cdn.bcebos.com/03605157935653bb7d6b44481d0b3121046171e2.jpg)
4、效果预览已完成的模板,可参见%FR_HOME%\WebReport\WEB-INF\reportlets\doc\SpecialSubject\TypicalIndustryReport\DesignerReport\bar.cpt