水晶报表中的复选框 [英] Checkbox in a Crystal Report

查看:267
本文介绍了水晶报表中的复选框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Crystal报表中显示复选框的最佳方法是什么?

What is the best way to display a checkbox in a Crystal Report?

示例:我的报表有一个男性应该检查。

Example: My report has a box for "Male" and "Female", and one should be checked.

我当前的解决方法是绘制一个小的图形方块,并排列成一个公式,如下:

My current workaround is to draw a small graphical square, and line it up with a formula which goes like this:

if {table.gender} = "M" then "X" else "  "

这是一个很差的解决方案,因为改变字体不对齐我的X和它周围的框,这是荒谬的眯在屏幕上,获得像素完美对齐对于每个盒子(有几十个)。

This is a poor solution, because changing the font misaligns my "X" and the box around it, and it is absurdly tedious to squint at the screen and get a pixel-perfect alignment for every box (there are dozens).

有没有人有更好的解决方案?我已经考虑过使用旧式终端字符,但我不确定它们是否在Crystal中正常显示。

Does anyone have a better solution? I've thought about using the old-style terminal characters, but I'm not sure if they display properly in Crystal.

编辑:我使用水晶XI。

I'm using Crystal XI.

推荐答案

尝试一对具有可见性条件公式的图像

Try a pair of images with a conditional formula for visibility

这篇关于水晶报表中的复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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