将子报告backcolor与主报告中的交替行颜色相匹配 [英] Match sub-report backcolor to alternating row color in main report

查看:94
本文介绍了将子报告backcolor与主报告中的交替行颜色相匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Access 2007中,我在详细信息部分中有一个包含子报表的报表。主报表的详细信息部分为显示的每一行显示交替颜色。


有没有办法让子报告自动将其背景颜色与父报告中每行的详细信息部分同步?


提前致谢!

解决方案

在我的头顶(未经测试),在子报告的打印或格式化事件中尝试这个:

展开 | 选择 | Wrap | 行号


感谢您的回复!不幸的是,我无法得到任何建议。


报告打开时,格式化打印事件甚至不会触发。


当提到BackColor时父详细信息部分的属性,是否会检索实际 BackColor或预设的BackColor(在详细信息部分的属性页面中)?


请提供什么不起作用的细节意思是......错误信息等。这样我就可以相应地调整代码。感谢。

In Access 2007, I have a report with a sub-report in the Detail section. The Detail section of the main report has alternating colors for each row displayed.

Is there a way to get the sub-report to automatically synchronize its background color with the Detail section in the parent report for each row?

Thanks in advance!

解决方案

Off the top of my head (not tested), try this in the print or format events of the subreport:

Expand|Select|Wrap|Line Numbers


Thanks for replying! Unfortunately, I could not get either suggestion to work.

The On Format or On Print events wouldn''t even trigger when the report was opened.

When referring to the "BackColor" property of the parent Detail section, will it retrieve the actual BackColor, or the preset BackColor (in the Detail section''s properties page)?


Please provide details of what "didn''t work" means...error messages,etc. so that I can adjust the code accordingly. Thanks.


这篇关于将子报告backcolor与主报告中的交替行颜色相匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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