简体   繁体   English

水晶报表,VS ..运行时错误,将字符串转换为日期

[英]Crystal report, error during runtime in VS.. error converting string to date

crystal report code 水晶报表代码

*date(val(left({?@DATEFROM},4)),
val(mid({?@DATEFROM},5,2)), 
val(right({?@DATEFROM},2)))*

these set of codes are working during the preview in crystal report XI, but during the runtime in VS 2013 it outputs error. 这些代码集在Crystal Report XI中的预览期间有效,但在VS 2013的运行时期间,它将输出错误。 "The field name is not known, Details errorKind...Error in formula.. the field name is not known." “字段名未知,详细信息errorKind ...公式中的错误。字段名未知。”

Are there other way I can convert string to date without error in Visual Studio?Thanks 还有其他方法可以将字符串转换为日期而不在Visual Studio中出错吗?

从参数名称中删除@字符。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM