帮助我Totext功能 [英] help me with Totext Function
问题描述
我正在创建一个水晶报告,我需要显示白炽色编号,当前日期和分支代码,如E0410111300001。这是
E04 - 是分行代码
101113 - 当前日期
00000 - 零的数量(如果对开的数字是十分之一然后它将使用其他零)
1 - 对开编号
谢谢你们
i'm creating a crystal report which i need to display the foilio number,the current date and the branch code like this "E0410111300001". which is
E04 - is the branch code
101113 - current date
00000 - number of zeros (if folio number is in tenths then it will use the other zero)
1 - folio number
thanks guys
推荐答案
您可以在特定字段中使用表达式。
喜欢
You can use expression for the specific field.
like
iif(folio>9,"000" & folio,"0000" & folio)
在不知道数据来自何处以及存储的地方我只能建议以下内容:
Without knowing where the data comes from and what is stored where I can only advise the following:
String.Format("{0}{1}{2}", BranchNoVariable, DateTime.Now.ToString(MMddyy),Folio.ToString("D8"))
这利用了以下内容:
带有前导零的焊盘编号 [ ^ ]
String.Format方法 [ ^ ]
自定义日期格式化 [ ^ ] < br $> b $ b
希望有所帮助。
This takes advantage of the following:
Pad Number with Leading Zeros[^]
String.Format Method[^]
Custom Date Formatting[^]
Hope that helps.
哈哈哈我刚解决了自己的问题
totext('E04')+ totext({actualguesting.datecheckin},mmddyy)+
totext({actualguesting.foilionum},'00000')
hahaha i just solved my own problem
totext('E04') + totext({actualguesting.datecheckin},"mmddyy") +
totext({actualguesting.foilionum},'00000')
>
这篇关于帮助我Totext功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!