如何在Windows应用程序的Crystal报表中以表格形式显示数据 [英] How to show data in tabular form in crystal report for Windows Application

查看:144
本文介绍了如何在Windows应用程序的Crystal报表中以表格形式显示数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个包含Crystal Report的Windows应用程序.该报告显示日期,员工ID,日期(存在/不在职)在场,原因. 如果员工缺席,则原因中会有一些说明原因的文字,否则为空.
在报表中绘制线条和框,结果是在原因文本之间的某处绘制了一行,其中原因字符数在运行时不同.有时在之间,有时会留空格.
也许使用CSS可以解决,但我不知道在Windows应用程序的Crystal Report中使用CSS.如果不需要使用CSS就可以实现目标,这也可以做到,因为我不需要更改颜色等.我只需要表格格式的数据.

I created a Windows application including crystal report. The report shows Date, ID of employee, presence on the date(present/absent), reason.
If the employee is absent the reason has some text specifying reason else empty.
Drawing line and box in report, results in line which is drawn somewhere between the reason text where the number of characters are different at runtime. Sometimes between , sometimes leaving spaces.
May be using CSS would resolve but I have no idea using CSS in crystal report for Windows application. It may also do if the objective can be achieved without using CSS because I do not require change in colors etc. I only need the data in table format.
How would I be able to resolve this problem?

推荐答案

是的,我也很久以前就遇到了这个问题.请执行以下步骤:

1.在设计模式下打开报表
2.打开工具箱
3.进行表格控制
4.确保没有将表格放在Designer的Header/Footer部分中.

5.相应地放置控件/标签
6.正确填充
7.正确使用VS的拖放功能,大小页眉/页脚.意思是说,主窗口应该尽可能小
Yeah, I also faced the problem a long time back. Follow the following steps:

1. Open the Report in Design Mode
2. Open Toolbox
3. Take a table control
4. Make sure that you have not put the table on Header/Footer part of the Designer

5. Put the Controls/Labels accordingly
6. Populate properly
7. Use Drag and Drop feature of the VS, Size Header/Footer properly. Mean to say, the main window should be as small as possible


我正在使用VS 2005专业版.
正如我在问题中已经提到的那样,使用box对象使固定或静态的盒子不是动态的,您可能会再次提及.结果,字符数的更改可能会导致框或框边框中在这些字符之间或上方绘制的空格,而不是整个文本都位于框中.
I am using Professional Edition of VS 2005.
Using box object makes a fixed or static box not dynamic as I already quoted in my question you may refer that again. As a result change in number of characters may result in spaces in the box or box border drawn somewhere between or on those characters rather entire text being in the box.


这篇关于如何在Windows应用程序的Crystal报表中以表格形式显示数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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