用于填充的水晶报告公式为零。 [英] Crystal report formula for padding leading with zero.
本文介绍了用于填充的水晶报告公式为零。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的发票没有1,但我想要显示001。如果数字将是2位数,如10,我想显示001.
解决方案
在字段资源管理器中创建公式 - >公式字段然后使用
右(0000& {MyFieldToPad},8)并将该字段拖到您的报告中
查看此链接< br $> b $ b
http://stackoverflow.com/questions/10989266/padding-a-fixed-number-with-leading-zeros-up-to-a-fixed-length [ ^ ]
I have invoice no 1 but i want to show 001 . if the number will be 2 digit like 10 i want to display 001.
解决方案
Create Formula in Field Explorer ->Formula Fields then use
Right("0000"&{MyFieldToPad},8) and drag that field into your report
check this link
http://stackoverflow.com/questions/10989266/padding-a-fixed-number-with-leading-zeros-up-to-a-fixed-length[^]
这篇关于用于填充的水晶报告公式为零。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文