更改水晶报表的颜色 [英] change back color of crystal report

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

问题描述

如何在C#.NET VS2008中更改水晶报表的背景色/背景图像?

How can I change backcolor/backimage of crystal report in C#.NET VS2008?

推荐答案

在部分专家中,您可以在部分上设置背景色.这可能是突出显示列标题的彩色带的有效方法.

但是,您可能不希望看到的一个效果是,乐队在整个页面上一路过关斩将.如果您想在报告中使用彩色的带状区域,但希望将其缩小,我们可以提供解决方案.

1.

创建第二部分并将其移到原始部分上方.
2.

将此新部分设置为"Underlay"
3.

使该部分比后面的部分稍大
4.

在此部分中插入一个框,将边框样式"更改为无",然后设置填充颜色

这是一种非常有效的格式化技术,可以为报表添加一些颜色





本文的版权归Crystalkeen,Mindconnection和Chelsea Technologies Ltd.所有.
In the section expert, you can set a background color on a section. This can be an effective way to highlight a colored band for column headings.

But one effect you may not want is that the band goes all the way across the page. If you want a colored band across the report, but would like it to be narrower, we have a solution.

1.

Create a second section and move it the above the original section.
2.

Set this new section to "Underlay"
3.

Make the section slightly larger than the subsequent section
4.

Insert a box in this section, change the Border Style to "None" and set a fill color

This can be a very effective formatting technique to add some color to your report





This article is copyrighted by Crystalkeen, Mindconnection, and Chelsea Technologies Ltd.


转到详细信息"的格式"部分.单击颜色选项卡.然后单击背景颜色"复选框旁边的按钮
将此代码插入到按所需颜色值设置格式的格式中:
如果RecordNumber mod 2 = 0,则为color(224,223,227),否则为crNoColor
Go to the format section of the Details. Click the Color Tab. Then click the button next to the Background Color CheckBox
insert this code to Format Formula by value color u wanted:
if RecordNumber mod 2 = 0 then color(224,223,227) else crNoColor


更改水晶报表中任何部分的背景颜色

步骤1.右键单击报告

步骤2.选择插入节".

步骤3.从插入部分"中选择部分".

步骤4.将打开一个新窗口.

步骤5.在左侧面板中,选择您要更改颜色的部分.

步骤6.在右侧区域中,选择颜色"选项卡,然后选择颜色.
Change the background color of any section in crystal report

Step 1. Right click in the report

Step 2. Select Insert Section.

Step 3. Select "Section" from Insert Section.

Step 4. A new windows Will open.

Step 5. In left panel Select Which Section do u want to change the color.

Step 6. In right section select Color tab and select the color.


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

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