在Crystal报表中显示文本值而不是数字 [英] Display text value instead of number in crystal report

查看:82
本文介绍了在Crystal报表中显示文本值而不是数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个水晶报表,其中显示了我的数据。在我的数据库表中,分支将以1,2,3等数字表示。因此,在水晶报表中显示分支名称后,分支名称将显示为1。因此,我需要用数字代替Office来显示分支名称。
示例:如果分支名称为 1,那么在水晶报表中它将显示为 office,我该如何实现?

I have a crystal report in which my datas are displayed. In my database table the branches are to be represented in numbers like 1,2,3 etc. So after displaying in crystal report the place of branch name shows as 1. So instead of number I need to show it as office. example: If the branch name is '1' then in crystal report it will display as 'office', how can I achieve this?

推荐答案

也许这种情况(显示关键字而不是整数)可以
如果{YourNumberField} = 1,则办公室
esle如果{YourNumberField} = 2,则 YourText

确保在编辑器中使用Crystal语法

Maybe This situation (Display keywords instead of integers) can help you. If {YourNumberField} = 1 Then "Office" Esle If {YourNumberField} = 2 Then "YourText" . make sure use crystal syntax in editor

这篇关于在Crystal报表中显示文本值而不是数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆