尝试在 Personify 中运行 Crystal Report 时收到颜色格式错误

问题描述 投票:0回答:1

以下是错误信息:

`The viewer could not process an event. Error in File MTG9008:
 Error in formula Section_Back_Color:
'// This conditional formatting formula must return one of the following Color Constants:
'
This field name is not known.
Details: errorKind []
---- Error code:0 [CRWEB00000119]`

这是确定“详细信息”部分中交替背景颜色的公式:

`// This conditional formatting formula must return one of the following Color Constants:
// 
// Color (red, green, blue)
// crBlack
// crMaroon
// crGreen
// crOlive
// crNavy
// crPurple
// crTeal
// crSilver
// crRed
// crLime
// crYellow
// crBlue
// crFuchsia
// crAqua
// crWhite
// crNoColor
// 
if recordnumber mod 2 = 0 then color(229, 229, 229) else crNoColor`

我尝试更改颜色以符合列表中的颜色。我还搜索了报告字段,但没有看到“Section_Back_Color”字段名称。

formatting crystal-reports formula
1个回答
0
投票

去掉 crNoColor` 末尾的 ' 字符 所以表达应该是:

if recordnumber mod 2 = 0 then color(229, 229, 229) else crNoColor
© www.soinside.com 2019 - 2024. All rights reserved.