我不太擅长 python,但似乎我需要更改 python 字符串才能获得所需的结果,但我不知道该怎么做。在水晶报告中,我可以使用部分专家为该部分着色,但随后它将所有主要标题着色为相同颜色。例如我有这个:
If {@GroupNumber} = 1 then "prepress"
else
if {@GroupNumber} = 2 then "stock"
else
if {@GroupNumber} = 3 then "press"
else
if {@GroupNumber} = 4 then "ink"
else
if {@GroupNumber} = 5 then "postpress"
这些是不同的“组”,都使用相同的标题。它为每个部分提供了不同的标题,但我需要找到一种方法以不同的颜色指定每个标题。有什么建议可以让我对这些标题进行颜色编码吗?
if GroupNumber = 1 then fuchsia
else
If GroupNumber = 2 then yellow
else
If GroupNumber = 3 then yellow
else
If GroupNumber = 4 then yellow
else
If GroupNumber = 5 then green
只有我的“新闻”标题显示正确的结果。所有其他人都显示为黑色,我不知道为什么。