如果本来是数值的话,就把要人民币大写的数据丢到gf_num_to_rmb() 的括号中。
如: gf_num_to_rmb(sum(sub_amt for all)) 
如果数据是通过db_data函数取来的就把要人民币大写放到gf_num_to_rmb(dec()) 的内括号中。
如:gf_num_to_rmb(dec(db_data3(~"select a.total_amt from t_cust_accout_master a,t_cust_accout_detail b  where a.sheet_no =b.sheet_No and b.voucher_no=? and a.pay_way=?~",sheet_no,~"01~")))
      
      
      
【官方】A5人民币大写。
      - 提问者: ytkf007
 - 等级:问不倒翁
 - 时间:2013-06-14 11:47
 - 悬赏:0
 - 解决时间:2013-06-16 17:39
 
最佳答案
这个比较实用,难怪上次引用本页小计大写金额不显示,原来小计金额是通过db_data函数取来的,用了这个公式gf_num_to_rmb(),应该用 gf_num_to_rmb(dec()) 这个就对了。
- 回答者:zhaoshuai888
 - 等级:问不倒翁
 - 时间:2013-06-14 21:52
 
- 提问者对最佳回答的评论:
 -  对于每页小计: 可以先增加个计算列,内容如下:sum(sub_amt for all)
这个列的列编号姑且假设其为:comput$$_11276。那我们再加个列,用来打印每页小计的人民币大写:内容如下gf_num_to_rmb(comput$$_11276)。就可以到达目的。 这个comput$$_11276列不想显示的话,可以双击它,把其宽度设为0,就不显示了。 
对最佳答案的评论    共 2 条
其它大写参考这里:http://www.yt-pos.com/ask/question.php?id=459
- 评论者:李祥
 
每页小计金额:sum(sub_amt for page)
- 评论者:ytkf007
 
其它回答  共 3 条
学习了
- 回答者:bonchen
 - 等级:问不倒翁
 - 时间:2013-06-14 11:58
 
学习007,支持下!
- 回答者:josense
 - 等级:皇冠会员
 - 时间:2013-06-14 14:12
 
学习开发部的007的解决方法
- 回答者:kh359
 - 等级:问不倒翁
 - 时间:2013-06-14 15:45
 
快到期问题
    
20062 
4708