开发者

Crystal Reports assumes wrong datatype of column from stored proc

What can be the reason that Crystal Reports Engine sometimes thinks that a field, that is returned from some stored procedure, that is in fact is of type money, is a varchar 255? Because of开发者_StackOverflow社区 that I cannot apply any number formatting.


Are you sure you have the field cast as money? Did you change the datatype recently, and not select Verify Database in Crystal Reports afterwards? If so, it could just be Crystal Reports being difficult; I've seen it do strange things from time to time with no real expalantion why.

That said, you could always create a Formula Field that contains:

ToNumber({YourTable.YourField})

You can then show this formula field on your report, and apply number formatting to the field. I know it's not the best answer, but it's a viable workaround.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜